Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
christophercliff committed Jun 28, 2017
1 parent 6f4ef8d commit 7a7547c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Has built-in settings for three GraphQL clients out of the box:

### Importing schema JSON

You'll need to import your [introspection query result](https://github.com/graphql/graphql-js/blob/master/src/utilities/introspectionQuery.js). This can be done if you define your ESLint config in a JS file. Note: we're always looking for better ways to get the schema, so please open an issue with suggestions.
You'll need to import your [introspection query result](https://github.com/graphql/graphql-js/blob/master/src/utilities/introspectionQuery.js) or the schema as a string in the Schema Language format. This can be done if you define your ESLint config in a JS file. Note: we're always looking for better ways to get the schema, so please open an issue with suggestions.

### Identity template literal tag

Expand Down Expand Up @@ -73,6 +73,9 @@ module.exports = {
// OR provide absolute path to your schema JSON
// schemaJsonFilepath: path.resolve(__dirname, './schema.json'),

// OR provide the schema in the Schema Language format
// schemaString: printSchema(schema),

// tagName is gql by default
}]
},
Expand Down Expand Up @@ -100,6 +103,9 @@ module.exports = {
// OR provide absolute path to your schema JSON
// schemaJsonFilepath: path.resolve(__dirname, './schema.json'),

// OR provide the schema in the Schema Language format
// schemaString: printSchema(schema),

// tagName is set for you to Relay.QL
}]
},
Expand Down Expand Up @@ -127,6 +133,9 @@ module.exports = {
// OR provide absolute path to your schema JSON
// schemaJsonFilepath: path.resolve(__dirname, './schema.json'),

// OR provide the schema in the Schema Language format
// schemaString: printSchema(schema),

// Optional, the name of the template tag, defaults to 'gql'
tagName: 'gql'
}]
Expand Down Expand Up @@ -155,6 +164,9 @@ module.exports = {
// OR provide absolute path to your schema JSON
// schemaJsonFilepath: path.resolve(__dirname, './schema.json'),

// OR provide the schema in the Schema Language format
// schemaString: printSchema(schema),

// tagName is set automatically
}]
},
Expand Down

0 comments on commit 7a7547c

Please sign in to comment.