Crate graphql_federated_graph

Source
Expand description

A structured representation of a federated GraphQL schema. Can be instantiated by composition or from SDL.

Re-exports§

pub use directives::*;

Modules§

directives
fmt
Utilities for formatting and printing Strings.
link

Structs§

DirectiveDefinitionArgument
DirectiveDefinitionId
DirectiveDefinitionRecord
DirectiveLocations
https://spec.graphql.org/October2021/#sec-The-__Directive-Type
DomainError
EnumDefinitionId
EnumDefinitionRecord
EnumValueId
EnumValueRecord
Extension
ExtensionId
FederatedGraph
Field
FieldId
FieldProvides
Represents an @provides directive on a field in a subgraph.
FieldRequires
Represents an @requires directive on a field in a subgraph.
FieldSelection
FieldSetItem
InputObject
InputObjectId
InputValueDefinition
InputValueDefinitionId
InputValueDefinitionSetItem
Interface
InterfaceId
Key
ListSize
Object
ObjectId
Override
Represents an @override(graph: .., from: ...) directive on a field in a subgraph.
RootOperationTypes
ScalarDefinitionId
ScalarDefinitionRecord
SelectionSet
StringId
Subgraph
SubgraphId
Type
Union
UnionId
View
ViewNested
Wrapping
It’s structured as follows:

Enums§

Definition
EntityDefinition
EntityDefinitionId
OverrideLabel
OverrideSource
Selection
Value

Constants§

NO_FIELDS
NO_INPUT_VALUE_DEFINITION

Functions§

render_api_sdl
Render a GraphQL SDL string for a federated graph. It does not include any federation-specific directives, it only reflects the final API schema as visible for consumers.
render_federated_sdl
Render a GraphQL SDL string for a federated graph. It includes join spec directives about subgraphs and entities.

Type Aliases§

DirectiveDefinition
EnumValue
FieldSet
Fields
A (start, end) range in FederatedGraph::fields.
InputValueDefinitionSet
InputValueDefinitions
A (start, len) range in FederatedSchema.