Skip to main content

Crate hyperlane_plugin_graphql

Crate hyperlane_plugin_graphql 

Source
Expand description

hyperlane-plugin-graphql

GraphQL over HTTP plugin for Hyperlane with a zero-dependency recursive-descent GraphQL parser, depth and field-count DoS caps, XxHash3_64 query and mutation resolver registries, and POST/GET GraphQL-over-HTTP execution.

Structs§

FieldSelection
Parsed GraphQL field selection with optional alias, arguments, and nested sub-selections.
FnGraphqlResolver
Wrapper adapting any Fn(&GraphqlFieldArgs) -> Result<Value, String> closure into GraphqlResolver.
GraphqlConfig
Configuration for GraphqlPlugin.
GraphqlError
One error entry in a GraphQL-spec response envelope.
GraphqlFieldArgs
Arguments and variables passed to a GraphqlResolver.
GraphqlHook
Opt-in request middleware handling GraphQL-over-HTTP POST and GET requests.
GraphqlPlugin
Compiled GraphQL schema and execution engine backing GraphqlHook.
GraphqlRequest
Inbound GraphQL-over-HTTP JSON request envelope.
GraphqlResponse
Spec-compliant GraphQL HTTP response envelope ({"data": ..., "errors": [...]}).
ParsedOperation
Parsed GraphQL operation document.

Enums§

OperationKind
GraphQL operation type parsed from an incoming document.

Constants§

DEFAULT_GRAPHQL_ENDPOINT
Default HTTP endpoint path handled by [GraphqlHook].
DEFAULT_MAX_DEPTH
Default maximum query nesting depth allowed before rejection (16).
DEFAULT_MAX_FIELDS
Default maximum total field selections per operation (64).
DEFAULT_MAX_QUERY_BYTES
Default maximum query document length in bytes (64 KiB).
GRAPHQL_JSON_CONTENT_TYPE
GraphQL JSON response media type.

Traits§

GraphqlResolver
Resolver trait for a single top-level GraphQL query or mutation root field.

Functions§

parse_graphql_document
Parses a GraphQL operation document into a ParsedOperation with DoS depth and complexity limits.