Mesh Specs https://specs.graphql-mesh.dev

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.

Example @link usage
extend schema
  @link(
    url: "https://specs.graphql-mesh.dev/core/v0.1"
    import: ["@transport", "@merge", "@source", "@resolveTo", "@hoist"]
  )

2Schema additions

2.1TransportOptions

scalar TransportOptions

2.2_HoistConfig

scalar _HoistConfig

2.3ResolveToSourceArgs

scalar ResolveToSourceArgs

3Directives

3.1@transport

directive @transport(
  subgraph: String!
  kind: String!
  location: String
  headers: [[String]]
  options: TransportOptions
) repeatable on SCHEMA

3.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_DEFINITION

3.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_DEFINITION

3.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_DEFINITION

3.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

3.5.1subgraph: String, pathConfig: _HoistConfig