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§
- Field
Selection - Parsed GraphQL field selection with optional alias, arguments, and nested sub-selections.
- FnGraphql
Resolver - Wrapper adapting any
Fn(&GraphqlFieldArgs) -> Result<Value, String>closure intoGraphqlResolver. - Graphql
Config - Configuration for
GraphqlPlugin. - Graphql
Error - One error entry in a GraphQL-spec response envelope.
- Graphql
Field Args - Arguments and variables passed to a
GraphqlResolver. - Graphql
Hook - Opt-in request middleware handling GraphQL-over-HTTP
POSTandGETrequests. - Graphql
Plugin - Compiled GraphQL schema and execution engine backing
GraphqlHook. - Graphql
Request - Inbound GraphQL-over-HTTP JSON request envelope.
- Graphql
Response - Spec-compliant GraphQL HTTP response envelope (
{"data": ..., "errors": [...]}). - Parsed
Operation - Parsed GraphQL operation document.
Enums§
- Operation
Kind - 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§
- Graphql
Resolver - Resolver trait for a single top-level GraphQL query or mutation root field.
Functions§
- parse_
graphql_ document - Parses a GraphQL operation document into a
ParsedOperationwith DoS depth and complexity limits.