specs / core / v0.1
core v0.1
Shared Mesh compose and runtime directives stamped under core/v0.1.
1Overview
Shared Mesh compose and runtime directives stamped under core/v0.1.
https://specs.graphql-mesh.dev/core/v0.1
ยท raw GraphQL
Stamp: importMeshDirectives defaults to this URL (MESH_SPEC_URL). Protocol loaders stamp @transport here separately from their protocol family URL.
extend schema
@link(
url: "https://specs.graphql-mesh.dev/core/v0.1"
import: ["@transport", "@merge", "@source", "@resolveTo", "@hoist"]
)
- Mesh stitching @source uses subgraph: (and optional type:). HTTP/REST Connectors @source uses http: and lives under specs.apollo.dev/connect.
- Older Mesh stamps may still import @pubsubOperation / @pubsubPublish from core/v0.1. Prefer the pubsub family for new schemas.
- @extraSchemaDefinitionDirective is Compose-internal SCHEMA-usage parking (lifted before the final SG) and is not published here.
2Schema additions
2.1TransportOptions
scalar TransportOptions2.2_HoistConfig
scalar _HoistConfig2.3ResolveToSourceArgs
scalar ResolveToSourceArgs3Directives
3.1@transport
directive @transport(
subgraph: String!
kind: String!
location: String
headers: [[String]]
options: TransportOptions
) repeatable on SCHEMA3.1.1subgraph: String!
3.1.2kind: String!
3.1.3location: String
3.1.4headers: [[String]]
3.1.5options: TransportOptions
3.2@merge
directive @merge(
subgraph: String
key: String
keyField: String
keyArg: String
argsExpr: String
) repeatable on FIELD_DEFINITION3.2.1subgraph: String
3.2.2key: String
3.2.3keyField: String
3.2.4keyArg: String
3.2.5argsExpr: String
3.3@source
directive @source(
name: String!
type: String
subgraph: String!
) repeatable on SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION3.3.1name: String!
3.3.2type: String
3.3.3subgraph: String!
3.4@resolveTo
directive @resolveTo(
requiredSelectionSet: String
sourceName: String
sourceTypeName: String
sourceFieldName: String
sourceSelectionSet: String
sourceArgs: ResolveToSourceArgs
keyField: String
keysArg: String
pubsubTopic: String
filterBy: String
additionalArgs: ResolveToSourceArgs
result: String
resultType: String
) on FIELD_DEFINITION3.4.1requiredSelectionSet: String
3.4.2sourceName: String
3.4.3sourceTypeName: String
3.4.4sourceFieldName: String
3.4.5sourceSelectionSet: String
3.4.6sourceArgs: ResolveToSourceArgs
3.4.7keyField: String
3.4.8keysArg: String
3.4.9pubsubTopic: String
3.4.10filterBy: String
3.4.11additionalArgs: ResolveToSourceArgs
3.4.12result: String
3.4.13resultType: String
3.5@hoist
directive @hoist(subgraph: String, pathConfig: _HoistConfig) repeatable on FIELD_DEFINITION