You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow overwriting of the GraphQL schema used by conductor in front of a GraphQL API.
Introspection and Validation should be done against the schema SDL provided, while validated requests should be forwarded to the actual endpoint (requests that contain __schema introspection fields and "normal" query selections, must be properly split and re-attached by the conductor).
Example Config:
config:
endpoint: "https://my-source.com/graphql"schema: "https://kashdlasdkasjdlkq.eg/schema.graphqls"# THIS IS THE GATEWAY SCHEMAid: "my-source"type: "graphql"
Example Endpoint Schema (config.endpoint)
typeQuery {
a: Int!b: Int!foo: String!
}
Example "Schema"/Gateway Schema (config.schema)
typeQuery {
foo: String!
}
--> We only want to expose the Query.foo field on the Gateway.
The use case for this is to support schema contracts for single schemas in Hive, see graphql-hive/platform#3856
The text was updated successfully, but these errors were encountered:
Allow overwriting of the GraphQL schema used by conductor in front of a GraphQL API.
Introspection and Validation should be done against the
schema
SDL provided, while validated requests should be forwarded to the actual endpoint (requests that contain__schema
introspection fields and "normal" query selections, must be properly split and re-attached by the conductor).Example Config:
Example Endpoint Schema (
config.endpoint
)Example "Schema"/Gateway Schema (
config.schema)
--> We only want to expose the
Query.foo
field on the Gateway.The use case for this is to support schema contracts for single schemas in Hive, see graphql-hive/platform#3856
The text was updated successfully, but these errors were encountered: