The annotation to designate a GraphQL object type as a federated entity.
graphql.subgraph: Subgraph
service
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
keystring|string[] - GraphQL fields and subfields that contribute to the entity's primary key/keys
resolveReferenceReferenceResolver?(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
__typenamestring - GraphQL typename field of the entity beign resolved