Spikard (spikard v0.15.6-rc.7)
Copy MarkdownHigh-level API for spikard
Summary
Functions
Stable machine-readable error type identifier (SCREAMING_SNAKE_CASE).
Whether the error condition is transient and may succeed on retry.
Convert error to HTTP status code
Set a custom description for documentation
Enable or disable the GraphQL Playground UI
Get the description if set
Get the configured method
Get the configured path
Check if playground is enabled
Set the HTTP method for the GraphQL endpoint
Set the HTTP path for the GraphQL endpoint
Create a schema configuration with all three root types.
Create a schema configuration with Query and Mutation types.
Create a simple schema configuration with only Query type.
Functions
Stable machine-readable error type identifier (SCREAMING_SNAKE_CASE).
Whether the error condition is transient and may succeed on retry.
@spec graphqlerror_status_code(String.t()) :: non_neg_integer()
Convert error to HTTP status code
Set a custom description for documentation
Enable or disable the GraphQL Playground UI
Get the description if set
Get the configured method
Get the configured path
Check if playground is enabled
Set the HTTP method for the GraphQL endpoint
Set the HTTP path for the GraphQL endpoint
@spec schema_full() :: map()
Create a schema configuration with all three root types.
@spec schema_query_mutation() :: map()
Create a schema configuration with Query and Mutation types.
@spec schema_query_only() :: map()
Create a simple schema configuration with only Query type.