{"bugs":{"url":"https://github.com/ardatan/graphql-import/issues"},"dist":{"shasum":"f65f7c3e3423e626f3ca9a4c5af3946445c08ecb","tarball":"https://registry.npmjs.org/graphql-import/-/graphql-import-1.0.2-edf8bea.0.tgz","fileCount":13,"integrity":"sha512-Gk7rqSQOinTcaOnVJbVvUkZySUkx8rLNROOEi9/eyqe0XlCOBqtrg58qh3qqe15hm7blFEn8+2D1lSnNxov7hw==","signatures":[{"sig":"MEUCIElTO4zZWJcBowWuYwsUl9/LWFHs9glGSJK7PQ2FlfFgAiEAgPODy73SzZg65vxGYOU67nXT3ienZDDyjwT3QkUzxXc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedvamCRA9TVsSAnZWagAADmAP/0zGYMPvXYVnsQU+YEuB\nFobQhneeRUneaOhV2tOL2JaSvRHkM18RMCY9solUwaz2NKr2makhsEK2SWGR\nRpCjFeOR/8sOZdXOjm+Dq3FSgsryby29sWMwgsK2/LDa8h/jOmEiK/bPV50H\neAX6QPShYdmFmJpKxiNk4N3l1rXB+QmLXrW/GlL92seN8m7cMZdZZDt95zXu\nEq5OpieHgJQtto5pDMOxdenp2Yat1WKiX+0jPb1dbDQgmv7FdQya05x1TEKC\n34x0AXfdGhatcf2PJ79Z+ORO03NcQSbmgy6UXEu2HXd3nBetvBhvIToKEgnR\nt4JZm6uvPO30GDG38MfgYO2/G/hHPgOW+GrbIKphyNIk0bw22MBqhv47+xI/\nY8h9elC5oyPqydEUZY1FyYNIRjcIxuc1kUaUPMmbnR/A2ZRVblz9r+cpLrdV\n6VRIhnAYapWXfXi9SDVCyDA4FPzC/7hH1d76/QkyWqjIFXjlEc4To8MI7t1f\nGbWrJxt2DYSNmWp47Eq/Lq7e+2N7RWgEgbVT9bwCvSS6LMGXzmdagYsL4gcR\nyPGpbVFxv8XXfcznyEAoANogdq8LwtOrTwUhkhzUIAloquzYrGnD8+HcUNvA\nl/iRuFwJchfGxVedfif7E8+OBEZ76kPRn31Id4HJ5L2L8mNLgEBIz9Q+z6ED\nHlxU\r\n=s+EO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","name":"graphql-import","module":"dist/index.esm.js","readme":"![IMPORT_1](https://user-images.githubusercontent.com/25294569/76310705-fc621b00-62d7-11ea-9643-1670cfe6be18.gif)\n# graphql-import\n\n[![Discord Chat](https://img.shields.io/discord/625400653321076807)](https://discord.gg/xud7bH9)\n\n## Install\n\n```sh\nyarn add graphql-import\n```\n\n## Usage\n\n```ts\nimport { importSchema } from 'graphql-import'\nimport { makeExecutableSchema } from 'graphql-tools'\n\nconst typeDefs = importSchema('schema.graphql'); // or .gql or glob pattern like **/*.graphql\nconst resolvers = {};\n\nconst schema = makeExecutableSchema({ typeDefs, resolvers });\n\n```\n\nAssume the following directory structure:\n\n```\n.\n├── schema.graphql\n├── posts.graphql\n└── comments.graphql\n```\n\n`schema.graphql`\n\n```graphql\n# import Post from \"posts.graphql\"\n\ntype Query {\n  posts: [Post]\n}\n```\n\n`posts.graphql`\n\n```graphql\n# import Comment from 'comments.graphql'\n\ntype Post {\n  comments: [Comment]\n  id: ID!\n  text: String!\n  tags: [String]\n}\n```\n\n`comments.graphql`\n\n```graphql\ntype Comment {\n  id: ID!\n  text: String!\n}\n```\n\nRunning `importSchema('schema.graphql')` produces the following output:\n\n```graphql\ntype Query {\n  posts: [Post]\n}\n\ntype Post {\n  comments: [Comment]\n  id: ID!\n  text: String!\n  tags: [String]\n}\n\ntype Comment {\n  id: ID!\n  text: String!\n}\n```\n","gitHead":"edf8bea1f9b1c7bc6ea7266673e0bad4bf230aaa","license":"MIT","scripts":{"docs":"typedoc --out docs src/index.ts --hideGenerator --exclude **/*.test.ts","lint":"tslint src/**/*.ts","test":"jest --no-watchman --passWithNoTests","build":"bob","clean":"rimraf dist","prepack":"bob-update-version","prebuild":"yarn clean","docs:publish":"cp ./now.json ./docs && cd docs && now --public -f && now alias && now rm --yes --safe graphql-import & cd ..","ci:release:canary":"node bump.js && npm publish --tag alpha"},"typings":"dist/index.d.ts","_npmUser":{"name":"ardatan","email":"ardatanrikulu@gmail.com"},"homepage":"https://github.com/ardatan/graphql-import#readme","repository":{"url":"git+ssh://git@github.com/ardatan/graphql-import.git","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"6.13.7","description":"![IMPORT_1](https://user-images.githubusercontent.com/25294569/76310705-fc621b00-62d7-11ea-9643-1670cfe6be18.gif) # graphql-import","directories":{},"maintainers":[{"name":"ardatan","email":"ardatanrikulu@gmail.com"},{"name":"dotansimha","email":"dotansimha@gmail.com"},{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},{"name":"kbrandwijk","email":"kim.brandwijk@gmail.com"},{"name":"schickling","email":"schickling.j@gmail.com"},{"name":"timsuchanek","email":"tim.suchanek@gmail.com"},{"name":"urigo","email":"uri.goldshtein@gmail.com"}],"sideEffects":false,"_nodeVersion":"13.11.0","buildOptions":{"input":"./src/index.ts"},"dependencies":{"@graphql-toolkit/core":"0.9.8-alpha-b446d3c.44+b446d3c","@graphql-toolkit/git-loader":"0.9.8-alpha-b446d3c.44+b446d3c","@graphql-toolkit/url-loader":"0.9.8-alpha-b446d3c.44+b446d3c","@graphql-toolkit/github-loader":"0.9.8-alpha-b446d3c.44+b446d3c","@graphql-toolkit/prisma-loader":"0.9.8-alpha-b446d3c.44+b446d3c","@graphql-toolkit/schema-merging":"0.9.8-alpha-b446d3c.44+b446d3c","@graphql-toolkit/code-file-loader":"0.9.8-alpha-b446d3c.44+b446d3c","@graphql-toolkit/json-file-loader":"0.9.8-alpha-b446d3c.44+b446d3c","@graphql-toolkit/graphql-file-loader":"0.9.8-alpha-b446d3c.44+b446d3c","@graphql-toolkit/apollo-engine-loader":"0.9.8-alpha-b446d3c.44+b446d3c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"25.1.0","tslint":"6.1.0","graphql":"14.6.0","ts-jest":"25.2.1","typedoc":"0.17.3","typescript":"3.8.3","@types/jest":"25.1.4","@types/node":"13.9.2","@ardatan/bob":"0.2.7","@types/lodash":"4.14.149","tslint-config-standard":"9.0.0"},"peerDependencies":{"graphql":"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-import_1.0.2-edf8bea.0_1584854693661_0.2264155834736925","host":"s3://npm-registry-packages"},"_id":"graphql-import@1.0.2-edf8bea.0","version":"1.0.2-edf8bea.0"}