{"_id":"graphql-ast-types","_rev":"10-5d0a31cc44f4679e9ccdfc46f7c6382b","name":"graphql-ast-types","time":{"modified":"2022-06-18T13:54:49.826Z","created":"2017-10-11T11:43:00.836Z","1.0.0":"2017-10-11T11:43:00.836Z","0.1.0":"2017-10-11T11:52:04.198Z","0.1.1":"2017-10-12T11:04:38.040Z","0.2.0":"2017-10-22T18:07:35.843Z","0.3.0":"2017-10-25T14:28:38.276Z","1.0.1":"2017-10-27T14:42:07.558Z","1.0.2":"2018-02-05T17:12:23.100Z"},"maintainers":[{"name":"imranolas","email":"imranolas@gmail.com"}],"dist-tags":{"latest":"1.0.2"},"readme":"<h1 align=\"center\">graphql-ast-types</h1>\n<p align=\"center\">Autogenerated helper functions for generating a GraphQL AST</p>\n\n\nThis project generates helpers functions from the graphql/language AST flow descriptions. It is intended to help with building a valid GraphQL AST.\n\n## Getting Started\n\n`yarn add graphql-ast-types`\n\n```js\nimport * as t from 'graphql-ast-types';\n```\n\n_The implementation here mimics that of `babel-types`. Thanks Babel team._\n\n## Usage\n\nThe following is an example of how to build a simple query with AST types.\n\n```js\nimport * as t from 'graphql-ast-types';\nimport { print } from 'graphql/language';\n\nconst ast = t.document([\n  t.operationDefinition(\n    'query',\n    t.selectionSet([\n      t.field(t.name('foo')),\n      t.field(t.name('bar'))\n    ])\n  )\n]);\n\nprint(ast);\n\n/*\nquery {\n  foo\n  bar\n}\n*/\n```\n\nIn addition, method calls are validated for correctness and accompanied by `is` and `assert` helpers.\n\n```js\nt.isName(t.name('Hello')); // true\n\nt.isName({ kind: 'Name' }); // true\nt.assert({ kind: 'Name' }); // no error\n\nt.isName({ kind: 'IntValue' }); // false\nt.assert({ kind: 'IntValue' }); // error\n```\n\nThe full API can be found [here](https://github.com/imranolas/graphql-ast-types/blob/master/api.md).\n","versions":{"0.1.0":{"name":"graphql-ast-types","version":"0.1.0","main":"lib/index.js","license":"MIT","scripts":{"test":"jest","test:watch":"jest --watch","build":"babel src --out-dir lib --source-maps inline","prepublishOnly":"yarn build"},"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"graphql":"^0.11.7"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-eslint":"^8.0.1","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-template":"^6.26.0","babel-traverse":"^6.26.0","babel-types":"^6.26.0","eslint":"^4.8.0","eslint-config-formidable":"^3.0.0","eslint-plugin-filenames":"^1.2.0","eslint-plugin-flowtype":"^2.39.0","eslint-plugin-import":"^2.7.0","eslint-plugin-prettier":"^2.3.1","flow-bin":"^0.56.0","graphql":"^0.11.7","jest":"^21.2.1","prettier":"^1.7.4","prettier-eslint":"^8.2.0"},"gitHead":"6017b1f62e18e485dca2a72864244b1154d86ff2","_id":"graphql-ast-types@0.1.0","_npmVersion":"5.4.2","_nodeVersion":"6.9.2","_npmUser":{"name":"imranolas","email":"imranolas@gmail.com"},"dist":{"integrity":"sha512-wZG2xlhyADBsIB/f7mMJj9UAktFSshkfN5WRrX22iGcTdgpHvWEnVAqLrTZlUmVLXGNttruK1+NgZd1O8CJUWw==","shasum":"0d61539fa553fa12c7f082448bcac3a2aec669a8","tarball":"https://registry.npmjs.org/graphql-ast-types/-/graphql-ast-types-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7UQrMzATdH48qM9l9hf7EigCEpngg0Zk0kJwb70m50wIgV74ffntMmVNZq1QtqAAmtMXFIkVnNeC9sNLNVU4iIKA="}]},"maintainers":[{"name":"imranolas","email":"imranolas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-ast-types-0.1.0.tgz_1507722723000_0.8285911551211029"}},"0.1.1":{"name":"graphql-ast-types","version":"0.1.1","main":"lib/index.js","license":"MIT","scripts":{"test":"jest src/**","test:watch":"yarn test -- --watch","build":"babel src --out-dir lib --source-maps inline","prepublishOnly":"yarn build"},"dependencies":{"lodash":"^4.17.4"},"peerDependencies":{"graphql":"^0.11.7"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-eslint":"^8.0.1","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-template":"^6.26.0","babel-traverse":"^6.26.0","babel-types":"^6.26.0","eslint":"^4.8.0","eslint-config-formidable":"^3.0.0","eslint-plugin-filenames":"^1.2.0","eslint-plugin-flowtype":"^2.39.0","eslint-plugin-import":"^2.7.0","eslint-plugin-prettier":"^2.3.1","flow-bin":"^0.56.0","graphql":"^0.11.7","jest":"^21.2.1","prettier":"^1.7.4","prettier-eslint":"^8.2.0"},"gitHead":"17c7de42fa94fffb6de09b7669ecf68667ec92e0","description":"<h1 align=\"center\">graphql-ast-types</h1> <p align=\"center\">Helper functions for generating a GraphQL AST</p>","_id":"graphql-ast-types@0.1.1","_npmVersion":"5.4.2","_nodeVersion":"6.9.2","_npmUser":{"name":"imranolas","email":"imranolas@gmail.com"},"dist":{"integrity":"sha512-u2f6L1IKujNCotRHsRWb6LFVQm2vy5mz1q9+NoxyxUOAHJtIFyTpBIzzZ4VmpFKxUfO1ljhEQy2/DAXfzGyLkw==","shasum":"9136b666d074ea3e55946ecde421f215742799fb","tarball":"https://registry.npmjs.org/graphql-ast-types/-/graphql-ast-types-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALTFHQb4LFSTFUTOqNd1zDDABg5t/r7EJvRGOoca8QzAiB9H0mV/zJnurhCmvLNPt7Zu8iJ2YdPcX54n76w+4/v6g=="}]},"maintainers":[{"name":"imranolas","email":"imranolas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-ast-types-0.1.1.tgz_1507806276945_0.21380873722955585"}},"0.2.0":{"name":"graphql-ast-types","version":"0.2.0","main":"lib/index.js","license":"MIT","scripts":{"test":"jest src/**","test:watch":"yarn test -- --watch","prebuild":"yarn generate","build":"babel src --out-dir lib --source-maps inline -D","generate":"node ./generate/index.js","prepublishOnly":"yarn build","flow":"./node_modules/.bin/flow"},"dependencies":{},"peerDependencies":{"graphql":"^0.11.7"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-eslint":"^8.0.1","babel-generator":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-template":"^6.26.0","babel-traverse":"^6.26.0","babel-types":"^6.26.0","eslint":"^4.8.0","eslint-config-formidable":"^3.0.0","eslint-plugin-filenames":"^1.2.0","eslint-plugin-flowtype":"^2.39.0","eslint-plugin-import":"^2.7.0","eslint-plugin-prettier":"^2.3.1","flow-bin":"^0.57.3","flow-parser":"^0.57.3","graphql":"^0.11.7","jest":"^21.2.1","prettier":"^1.7.4","prettier-eslint":"^8.2.0"},"description":"`yarn add graphql-ast-types`","_id":"graphql-ast-types@0.2.0","dist":{"shasum":"6df45cf739407be2de6c244b3f19c3cdbe62cb06","tarball":"https://registry.npmjs.org/graphql-ast-types/-/graphql-ast-types-0.2.0.tgz","integrity":"sha512-WBS/USdx91Ivfp6rDTcn4mscYTYSaXefQbp/3P9E3vR4GlANKZKCqlKsQ2fyRi27W+3ZVcqHzwRhDim43eSaNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNKjCwNh36eOlBEOyXr+5S2OYphNRUcun8hDIv8Jr07AIhAKoxl3pcd0p45/jd//zvyA822lPmKlJnhMa5OUnsAn6D"}]},"maintainers":[{"name":"imranolas","email":"imranolas@gmail.com"}],"_npmUser":{"name":"imranolas","email":"imranolas@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-ast-types-0.2.0.tgz_1508695654854_0.9877170724794269"}},"0.3.0":{"name":"graphql-ast-types","version":"0.3.0","main":"lib/index.js","license":"MIT","scripts":{"test":"jest src/**","test:watch":"yarn test -- --watch","prebuild":"yarn generate","build":"babel src --out-dir lib --source-maps inline -D","generate":"node ./generate/index.js","prepublishOnly":"yarn build","flow":"./node_modules/.bin/flow"},"dependencies":{},"peerDependencies":{"graphql":"^0.11.7"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-eslint":"^8.0.1","babel-generator":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-template":"^6.26.0","babel-traverse":"^6.26.0","babel-types":"^6.26.0","eslint":"^4.8.0","eslint-config-formidable":"^3.0.0","eslint-plugin-filenames":"^1.2.0","eslint-plugin-flowtype":"^2.39.0","eslint-plugin-import":"^2.7.0","eslint-plugin-prettier":"^2.3.1","flow-bin":"^0.57.3","flow-parser":"^0.57.3","graphql":"^0.11.7","jest":"^21.2.1","prettier":"^1.7.4","prettier-eslint":"^8.2.0"},"description":"`yarn add graphql-ast-types`","_id":"graphql-ast-types@0.3.0","dist":{"shasum":"c1ae9e57024e803660f25941a690873b3f9ccef1","tarball":"https://registry.npmjs.org/graphql-ast-types/-/graphql-ast-types-0.3.0.tgz","integrity":"sha512-XZQWY5/ftJVl9uowo2Ft4dUZv1Q26kkiQIx8vo4xNQ3ws0+Xt5OfQykR2ZqBvVGVpWyruydiGHNST2nSd4P9TA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBxwwBl8VvmvwYHzohyUWozXcTMcoVLZkwq5WMWRUj5FAiAzRi4y37nBEBrIZNgfF/WjMxAhNXgjR7ZeflMx/kNzZw=="}]},"maintainers":[{"name":"imranolas","email":"imranolas@gmail.com"}],"_npmUser":{"name":"imranolas","email":"imranolas@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-ast-types-0.3.0.tgz_1508941716160_0.5200223694555461"}},"1.0.1":{"name":"graphql-ast-types","version":"1.0.1","main":"lib/index.js","license":"MIT","keywords":["graphql","ast","types","graphql-ast-types"],"repository":{"type":"git","url":"git+https://github.com/imranolas/graphql-ast-types.git"},"files":["README.md","lib","src","api.md"],"scripts":{"test":"jest src/**","test:watch":"yarn test -- --watch","prebuild":"yarn generate","build":"babel src --out-dir lib --source-maps inline -D","generate":"node ./generate/index.js","prepublishOnly":"yarn build","flow":"./node_modules/.bin/flow","lint-staged":"lint-staged"},"bugs":{"url":"https://github.com/imranolas/graphql-ast-types/issues"},"dependencies":{},"peerDependencies":{"graphql":"^0.11.7"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-generator":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-template":"^6.26.0","babel-traverse":"^6.26.0","babel-types":"^6.26.0","flow-bin":"^0.57.3","flow-parser":"^0.57.3","graphql":"^0.11.7","jest":"^21.2.1","lint-staged":"^4.3.0","pre-commit":"^1.2.2","prettier":"^1.7.4","strip-indent":"^2.0.0"},"jest":{"roots":["<rootDir>/src/"]},"lint-staged":{"*.js":["prettier --write","git add"]},"pre-commit":"lint-staged","description":"`yarn add graphql-ast-types`","_id":"graphql-ast-types@1.0.1","dist":{"shasum":"7ef8a6073ce6aa752454570aa95bf779dc92add1","tarball":"https://registry.npmjs.org/graphql-ast-types/-/graphql-ast-types-1.0.1.tgz","integrity":"sha512-XJ/0a6Drc04Jrg3vtBJuT7DyQV/fU1ovZp+E+BOkdkq3KZ12xU0g36wmz/LzQC6XmUtY9Su1ifBwBtYOQ2XlEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAN00vWQyZDY43OrfsK/JRmue1UxeiI5DjD81dcSp3CIAiEAoR+do6e5rlzyC70lKuZsuPK+WeFuuqd/yogKn2vto10="}]},"maintainers":[{"name":"imranolas","email":"imranolas@gmail.com"}],"_npmUser":{"name":"imranolas","email":"imranolas@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-ast-types-1.0.1.tgz_1509115326567_0.5415592845529318"}},"1.0.2":{"name":"graphql-ast-types","version":"1.0.2","main":"lib/index.js","license":"MIT","keywords":["graphql","ast","types","graphql-ast-types"],"repository":{"type":"git","url":"git+https://github.com/imranolas/graphql-ast-types.git"},"files":["README.md","lib","src","api.md"],"scripts":{"test":"jest src/**","test:watch":"yarn test -- --watch","prebuild":"yarn generate","build":"babel src --out-dir lib --source-maps inline -D","generate":"node ./generate/index.js","prepublishOnly":"yarn build","flow":"flow","lint-staged":"lint-staged"},"bugs":{"url":"https://github.com/imranolas/graphql-ast-types/issues"},"dependencies":{},"peerDependencies":{"graphql":"^0.11.7"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-generator":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-template":"^6.26.0","babel-traverse":"^6.26.0","babel-types":"^6.26.0","flow-bin":"^0.57.3","flow-parser":"^0.57.3","graphql":"^0.11.7","jest":"^21.2.1","lint-staged":"^4.3.0","pre-commit":"^1.2.2","prettier":"^1.7.4","strip-indent":"^2.0.0"},"jest":{"roots":["<rootDir>/src/"]},"lint-staged":{"*.js":["prettier --write","git add"]},"pre-commit":"lint-staged","gitHead":"b793a646810427807225d125b93c4c77eaf5340c","description":"<h1 align=\"center\">graphql-ast-types</h1> <p align=\"center\">Autogenerated helper functions for generating a GraphQL AST</p>","homepage":"https://github.com/imranolas/graphql-ast-types#readme","_id":"graphql-ast-types@1.0.2","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"imranolas","email":"imranolas@gmail.com"},"dist":{"integrity":"sha512-X/fPOuVsW1jor3/FIceloKZB4YGx5nsZ8/7z7mceIU6tw7AQTt+OZ0Xk+RWk9DZ0DLdmZ3kuh67fkzGR+U7j6Q==","shasum":"49f2ae8f52be9ae426263f95320888f0cb772711","tarball":"https://registry.npmjs.org/graphql-ast-types/-/graphql-ast-types-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+mfD0eFTilyHaK2nGZx85nhgyZkkhu9/6LKtkom8y7wIhANjH/sizzbRhBndREarG7SqjuDZesCBxV07YBSFJNJ8Y"}]},"maintainers":[{"name":"imranolas","email":"imranolas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-ast-types-1.0.2.tgz_1517850741901_0.8289239015430212"}}},"license":"MIT","readmeFilename":"README.md","description":"<h1 align=\"center\">graphql-ast-types</h1> <p align=\"center\">Autogenerated helper functions for generating a GraphQL AST</p>","keywords":["graphql","ast","types","graphql-ast-types"],"repository":{"type":"git","url":"git+https://github.com/imranolas/graphql-ast-types.git"},"bugs":{"url":"https://github.com/imranolas/graphql-ast-types/issues"},"homepage":"https://github.com/imranolas/graphql-ast-types#readme"}