Keywords: REST Alternative
- Schema Definition Language (SDL)
- Code-Only or Code-first
- Schema-first or SDL-first
- Schema Definition Language (SDL)
- Fields
- Arguments
- Alias
- Fragments
- Operation Name
- Variables
# Using NPM
npm install graphql
# Using Yarn
yarn add graphql
# Using Yarn
yarn add eslint-plugin-graphql --dev
/**
* @type { import('@types/eslint').Linter.Config }
*/
const eslintRC = {
// ...
overrides: [
{
files: ['./src/graphql/queries/*.graphql'],
parser: '@graphql-eslint/eslint-plugin',
plugins: ['@graphql-eslint'],
rules: {
'@graphql-eslint/known-type-names': 'error',
},
},
],
}
module.exports = eslintRC
#
code --install-extension 'GraphQL.vscode-graphql'
#
jq '."recommendations" += ["GraphQL.vscode-graphql"]' "$PWD"/.vscode/extensions.json | sponge "$PWD"/.vscode/extensions.json
Query root type must be provided.
TODO