diff --git a/src/content/graphql-js/APIReference-Language.md b/src/content/graphql-js/APIReference-Language.md index e9f8ae2284..1a7ef4b241 100644 --- a/src/content/graphql-js/APIReference-Language.md +++ b/src/content/graphql-js/APIReference-Language.md @@ -4,7 +4,7 @@ layout: docs category: API Reference permalink: /graphql-js/language/ sublinks: BREAK,getLocation,Kind,lex,parse,parseValue,printSource,visit -next: /graphql-js/type/ +next: /graphql-js/schema-coordinates/ --- The `graphql/language` module is responsible for parsing and operating on the GraphQL language. You can import either from the `graphql/language` module, or from the root `graphql` module. For example: diff --git a/src/content/graphql-js/APIReference-SchemaCoordinates.md b/src/content/graphql-js/APIReference-SchemaCoordinates.md new file mode 100644 index 0000000000..72e411cb0f --- /dev/null +++ b/src/content/graphql-js/APIReference-SchemaCoordinates.md @@ -0,0 +1,87 @@ +--- +title: graphql/schema-coordinates +layout: docs +category: API Reference +permalink: /graphql-js/schema-coordinates/ +sublinks: parseSchemaCoordinate,printSchemaCoordinate,nodeFromSchemaCoordinate,schemaCoordinateFromNode +next: /graphql-js/type/ +--- + +The `graphql/schema-coordinates` module is responsible for parsing and working with Schema Coordinates. You can import either from the `graphql/schema-coordinates` module, or from the root `graphql` module. For example: + +```js +import { SchemaCoordinates } from 'graphql'; // ES6 +var { SchemaCoordinates } = require('graphql'); // CommonJS +``` + +## Overview + +
function parseSchemaCoordinate+ Parses a Schema Coordinate string according to the Schema Coordinate Grammar + +
function printSchemaCoordinate+ Prints a Schema Coordinate string from its AST + +
function nodeFromSchemaCoordinate+ Returns a GraphQL AST node from its Schema Coordinate and Schema + +
function schemaCoordinateFromNode+ Returns the Schema Coordinate of a GraphQL Schema AST node + +