Ballerina library
graphql.subgraph
Modules
Module graphql.subgraph
ballerina/graphql.subgraph Ballerina library
1.11.1
Constants
graphql.subgraph: ANY
Define _Any Scalar type used in subgraph schema.
Annotations
graphql.subgraph: Entity
The annotation to designate a GraphQL object type as a federated entity.
graphql.subgraph: Subgraph
The annotation to designate a GraphQL service as a federated GraphQL subgraph.
Records
graphql.subgraph: FederatedEntity
Closed record
Describes the shape of the graphql:Entity
annotation
Fields
- resolveReference ReferenceResolver?(default ()) - Function pointer to resolve the entity. if set to nil, indicates the graph router that this subgraph does not define a reference resolver for this entity
graphql.subgraph: Representation
Denotes the entity representation outlined in the federation specification.
Fields
- __typename string - GraphQL typename field of the entity beign resolved
Function types
graphql.subgraph: ReferenceResolver
function(Representation) returns (map<any>|service object {}|error?)
ReferenceResolver
Represents the type of entity resolver
Import
import ballerina/graphql.subgraph;
Metadata
Released date: 5 months ago
Version: 1.11.1
License: Apache-2.0
Compatibility
Platform: java17
Ballerina version: 2201.8.5
GraalVM compatible: Yes
Pull count
Total: 88196
Current verison: 1373
Weekly downloads
Keywords
gql
network
query
service
Contributors
Dependents