Expand description
Type definitions of the input and output data structures of the SDK.
Structs§
- Arguments
Id - Identifier for arguments in a GraphQL query
- Authenticated
Request Context - Context available after the authenticate()
- Authorization
Decisions - Authorization decisions for each query elements to be applied by the GraphQL engine.
- Authorize
Query Output - Output type for the authorize_query() method.
- Authorized
Operation Context - Context available after the authorize_query()
- Configuration
- Configuration data for the extension, from the gateway toml config.
- Contract
- Contract that must be applied on the schema.
- Contract
Directive - Represents a directive associated with a contract.
- Definition
Id - Identifier for a GraphQL definition within a schema
- Deny
Some Builder - To be used when denying some of the elements. By default everything is granted.
- Directive
- Represents a GraphQL directive applied to a schema element
- Enum
Definition - Represents a GraphQL enum type definition
- Enum
Directive Site - A directive site for enums
- Enum
Value - Represents a single possible value in a GraphQL enum definition
- Error
- Graphql Error with a message and extensions
- ErrorId
- Error identifier to allow re-using the same error for multiple elements. In the gateway response, the error will be repeated if necessary during serialization.
- Error
Response - A response containing a status code and multiple errors.
- Field
- A field within a GraphQL query
- Field
Definition - Represents a GraphQL field definition within an object or interface
- Field
Definition Directive Site - A directive site for field definitions
- Graphql
Subgraph - Represents a GraphQL subgraph with its name and URL.
- Headers
- HTTP headers.
- Http
Request Parts - Represents the parts of an HTTP request, including the URL, method, and headers.
- Input
Object Definition - Represents a GraphQL input object type definition
- Input
Value Definition - Represents an input value definition in a GraphQL schema
- Interface
Definition - Represents a GraphQL interface type definition
- Interface
Directive Site - A directive site for interfaces
- Object
Definition - GraphQL object type definition
- Object
Directive Site - A directive site for object types
- OnRequest
Output - Output type for the on_request() hook.
- Public
Metadata Endpoint - An HTTP endpoint exposed publicly on the Gateway. This is typically used to return metadata for authentication purposes, for example with the OAuth 2.0 Protected Resource Metadata spec.
- Query
Element - An element of the query on which a directive was applied.
- Query
Element Id - An identifier for a query element. Only relevant for response authorization as data provided in
authorize_query
won’t be re-sent inauthorize_response
. So this ID allows finding the relevant data in the custom state. - Query
Elements - A list of elements present in the query on which one of the extension’s directive was applied on their definition.
- Query
Elements Iterator - Iterator over the elements of the query on which a directive was applied.
- Request
Context - Context available after the on_request() hook.
- Resolved
Field - Represents a resolved field in the context of a subgraph and its parent type
- Response
- Represents a response from the Grafbase SDK, which can contain data or errors.
- Response
Element - An element of the query on which a directive was applied.
- Response
Elements - A list of elements present in the query on which one of the extension’s directive was applied on their definition.
- Response
Elements Iterator - Iterator over the elements of the query on which a directive was applied.
- Response
Item - Represents a single item, object or field, that is subject to an authorization rule with the data requested by the directive.
- Scalar
Definition - GraphQL scalar type definition
- Scalar
Directive Site - A directive site for scalars
- Selection
Set - Represents a selection set in a GraphQL query
- Subgraph
Schema - GraphQL schema
- Token
- Token produced by an authentication extension.
- Type
- Represents a GraphQL type with its wrapping information
- Union
Definition - Represents a GraphQL union type definition
- Union
Directive Site - A directive site for union types
- Variables
- All argument values for a given selection set, to be used with Field.
Enums§
- Data
- Data serialized in either JSON or CBOR
- Directive
Site - The site where a directive is applied in the GraphQL schema.
- Entity
Definition - Represents a GraphQL entity definition, which can be either an object or an interface
It does not imply that this is a federated entity with a
@key
directive. - Subscription
Item - Represents one or multiple items from a subscription.
- Type
Definition - Enum representing the different types of GraphQL definitions
- Wrapping
Type - Represents the different ways a GraphQL type can be wrapped
Type Aliases§
- Gateway
Headers - HTTP headers for the gateway request.
- Subgraph
Headers - HTTP headers for the subgraph request. Those are the result of the GatewayHeaders passed through the