Skip to Content
Mesh
v0GuidesSchema Coordinates
⚠️
This is the documentation for the old GraphQL Mesh version v0. We recommend upgrading to the latest GraphQL Mesh version v1.

Migrate to GraphQL Mesh v1

Schema Coordinates

Schema Coordinates are the GraphQL specification way to name a single schema element. Prefer Spec forms when the config targets one type, field, argument, or directive.

Background: Schema Coordinates RFC  (merged into the Spec as PR #794 ), Spec §2.14 .

Mesh also keeps schema selectors (globs such as Query.*, filter patterns such as Type.!User) on APIs that need them. Selectors are not Spec Schema Coordinates; both vocabularies stay in use.

Spec forms (exact)

A Schema Coordinate is a compact string with no whitespace. Each schema element has exactly one coordinate.

KindFormExample
Named typeNameBusiness
Field, input field, or enum valueName.NameBusiness.name, SearchCriteria.filter, SearchFilter.OPEN_NOW
Field argumentName.Name(Name:)Query.searchBusiness(criteria:)
Directive@Name@deprecated
Directive argument@Name(Name:)@deprecated(reason:)

Argument and directive-argument forms use a trailing : inside the parentheses. That marks an argument name, not a value.

Query.user(id:) # Spec Schema Coordinate (the id argument) Query.todo(id:"42") # live-query identifier with a value (not Spec)

Mesh schema selectors (kept)

Use selectors when you need wildcards or include/exclude patterns. They remain supported on filter schema, resolvers composition, rate limit style APIs, and response-cache TTL maps.

Mesh termExampleUse
Schema selectorQuery.*, Type.!User, Mutation.*, Query.user.!nameGlob / include-exclude transforms and plugins
Live-query identifierTodo:123, Query.todo(id:"{args.id}")Live Query invalidation (may embed values)
Connector coordinateecomm:Query.products@connect[0]Connect error identity for a directive application
Response / resolve path["stores", 0, "author"] or path labels in sequence diagramsLocation in an operation result, not in the schema

Wildcards, nested paths like Query.user.name, union members like Meal.Breakfast, and directive applications on a field are Spec non-goals for Schema Coordinates. Mesh may still accept wildcards as selectors on its own APIs.

Prefer Spec coordinates when naming one element (Query.users, Stock). Keep Mesh selectors such as Query.* when you intentionally target many fields. Docs and examples should label which vocabulary they use.

Where Mesh uses each

  • Response cache ttlPerCoordinate: Spec Type / Type.field, and Mesh selectors like Query.* (Mesh expands selectors against the operation). See Response Caching.
  • Federation transform config keys: Spec Type / Type.field. See Federation Transform.
  • Filter schema: Mesh selectors (Type.!User, Query.*.id). See Filter Schema.
  • Mock apply / exact resolvers composition resolver: prefer Spec Type.field; globs such as Mutation.* remain selectors.
Last updated on