Skyhook Graphql SDK
Summary
This module contains auto-generated:- Graphql types, inputs and ENUMs (exported as API)
- DynamoDb types (exported as DynamoDB)
- Introspection JSON (exported as IntrospectionJSON) - useful for running eslint-plugin-graphql on queries.
Use with Eslint
The following config is needed for use with eslint-plugin-graphql:const { IntrospectionJSON } = require('skyhook-graphql-sdk');
module.exports = {
//...
rules: {
//...
'graphql/template-strings': [
'error',
{
schemaJson: IntrospectionJSON,
// Other eslint-plugin-graphql settings, e.g:
env: 'literal',
tagName: 'gql',
},
],
},
};