Crate grafbase_sdk_mock

Source
Expand description

Provides a dynamic GraphQL schema and subgraph implementation that can be built and executed at runtime.

This crate allows creating GraphQL schemas dynamically from SDL (Schema Definition Language) strings and executing queries against them. It also provides functionality for running mock GraphQL servers using these dynamic schemas.

Structs§

DynamicSchema
A dynamic GraphQL schema that can be built and executed at runtime.
DynamicSchemaBuilder
A builder for dynamic GraphQL schemas.
DynamicSubgraph
A dynamic subgraph implementation that can be started as a mock GraphQL server.
ExtensionOnlySubgraph
A subgraph that only contains extension definitions. We do not spawn a GraphQL server for this subgraph.
MockGraphQlServer
Represents a mock GraphQL server used for testing purposes.

Enums§

MockSubgraph
A mock subgraph that can either be a full dynamic GraphQL service or just extension definitions.