{"_id":"@elmaanum/data-source-mydatatest","_rev":"4-b42d0e928019326865c2c0400d76b75e","name":"@elmaanum/data-source-mydatatest","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@elmaanum/data-source-mydatatest","description":"GrAMPS Data Source: StitchingTest","version":"1.0.1","main":"src/index.js","files":["dist/"],"scripts":{"prepush":"npm test","prebuild":"del-cli ./dist","build":"babel src -d dist","postbuild":"cpy ./src/schema.graphql ./dist","dev":"gramps dev --data-source .","dev:mock-data":"gramps dev --data-source . --mock","lint":"eslint src/","test:unit":"cross-env NODE_ENV=test jest --coverage","test":"npm run lint --silent && npm run test:unit --silent","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"keywords":["graphql"],"license":"MIT","dependencies":{"casual":"^1.5.19"},"peerDependencies":{"graphql":"^0.12.0","graphql-tools":"^1.2.1 || ^2.5.1"},"devDependencies":{"@gramps/cli":"^1.1.3","@gramps/gramps":"^1.1.0","babel-cli":"^6.24.1","babel-eslint":"^8.0.3","babel-jest":"^22.0.4","babel-plugin-inline-import":"^2.0.6","babel-preset-env":"^1.6.1","cpy-cli":"^1.0.1","cross-env":"^5.1.3","del-cli":"^1.1.0","eslint":"^4.13.1","eslint-config-airbnb-base":"^12.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-import":"^2.8.0","eslint-plugin-prettier":"^2.4.0","globby":"^7.1.1","graphql":"^0.12.3","graphql-tools":"^2.14.1","husky":"^0.14.3","inquirer":"^4.0.1","jest":"^22.0.4","prettier":"^1.9.2","semantic-release":"^11.0.2"},"jest":{"coverageReporters":["text","lcov"],"collectCoverageFrom":["src/**/*.js"],"coverageThreshold":{"global":{"branches":80,"functions":80,"lines":80,"statements":80}}},"_id":"@elmaanum/data-source-mydatatest@1.0.1","dist":{"shasum":"e009e1b5e289b39e4bc5e7a9cfbe322614fed373","tarball":"https://registry.npmjs.org/@elmaanum/data-source-mydatatest/-/data-source-mydatatest-1.0.1.tgz","fileCount":11,"unpackedSize":9040,"integrity":"sha512-jRhquF4FcUf5zx4CRTeFgHMBelUJfryXN06ohjTiLSU1yG10uuSNKGM2g9mCXt+gbfaKIygMjDYjZNjVP1X3PQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGrsKswrMVzQSuYEyT9uubhxPAMmuR/KeAGf3eVSynzAiEAhhzdxNwKIlYdVFPI0l4OcgDsZ/y3NH1PBMeSs3ACiJY="}]},"maintainers":[{"name":"elmaanum","email":"elmaanum@gmail.com"}],"_npmUser":{"name":"elmaanum","email":"elmaanum@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/data-source-mydatatest_1.0.1_1522334486838_0.8266110829248159"},"_hasShrinkwrap":false},"1.0.2":{"name":"@elmaanum/data-source-mydatatest","description":"GrAMPS Data Source: StitchingTest","version":"1.0.2","main":"src/index.js","files":["dist/"],"scripts":{"prepush":"npm test","prebuild":"del-cli ./dist","build":"babel src -d dist","postbuild":"cpy ./src/schema.graphql ./dist","dev":"gramps dev --data-source .","dev:mock-data":"gramps dev --data-source . --mock","lint":"eslint src/","test:unit":"cross-env NODE_ENV=test jest --coverage","test":"npm run lint --silent && npm run test:unit --silent","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"keywords":["graphql"],"license":"MIT","dependencies":{"casual":"^1.5.19"},"peerDependencies":{"graphql":"^0.12.0","graphql-tools":"^1.2.1 || ^2.5.1"},"devDependencies":{"@gramps/cli":"^1.1.3","@gramps/gramps":"^1.1.0","babel-cli":"^6.24.1","babel-eslint":"^8.0.3","babel-jest":"^22.0.4","babel-plugin-inline-import":"^2.0.6","babel-preset-env":"^1.6.1","cpy-cli":"^1.0.1","cross-env":"^5.1.3","del-cli":"^1.1.0","eslint":"^4.13.1","eslint-config-airbnb-base":"^12.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-import":"^2.8.0","eslint-plugin-prettier":"^2.4.0","globby":"^7.1.1","graphql":"^0.12.3","graphql-tools":"^2.14.1","husky":"^0.14.3","inquirer":"^4.0.1","jest":"^22.0.4","prettier":"^1.9.2","semantic-release":"^11.0.2"},"jest":{"coverageReporters":["text","lcov"],"collectCoverageFrom":["src/**/*.js"],"coverageThreshold":{"global":{"branches":80,"functions":80,"lines":80,"statements":80}}},"_id":"@elmaanum/data-source-mydatatest@1.0.2","dist":{"shasum":"45a3b76539a35b75748b879477bc16e4a9dc4204","tarball":"https://registry.npmjs.org/@elmaanum/data-source-mydatatest/-/data-source-mydatatest-1.0.2.tgz","fileCount":11,"unpackedSize":9064,"integrity":"sha512-kSqZ/52TN+r3TYCdKtS+/wSd97t+B8UZJJs2cI+jFgi93jDkODa+zSzUlLy+04Tmxc2z2+uVZbdQ+NXrEh2Jlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGy93bIEsf5GAYmBPeYYuF2xp4V7SGDPXSfmJ8tjd1eOAiEAlrnNrxFJbi5kh894th8R/YtY/yxtq1t4TU0u0bptkYc="}]},"maintainers":[{"name":"elmaanum","email":"elmaanum@gmail.com"}],"_npmUser":{"name":"elmaanum","email":"elmaanum@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/data-source-mydatatest_1.0.2_1522334749502_0.4071456776540563"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-29T14:41:26.736Z","1.0.1":"2018-03-29T14:41:26.977Z","modified":"2022-06-12T17:31:47.170Z","1.0.2":"2018-03-29T14:45:49.598Z"},"maintainers":[{"name":"elmaanum","email":"elmaanum@gmail.com"}],"description":"GrAMPS Data Source: StitchingTest","keywords":["graphql"],"license":"MIT","readme":"<a href=\"https://gramps.js.org/\"><img src=\"https://gramps.js.org/assets/img/gramps-banner.png\" alt=\"GrAMPS · An easier way to manage the data sources powering your GraphQL server\" width=\"450\"></a>\n\n# GrAMPS GraphQL Data Source Base\n\n[![Build Status](https://travis-ci.org/gramps-graphql/data-source-base.svg?branch=master)](https://travis-ci.org/gramps-graphql/data-source-base) [![Maintainability](https://api.codeclimate.com/v1/badges/1858e5dd8acfad0d4540/maintainability)](https://codeclimate.com/github/gramps-graphql/data-source-base/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/1858e5dd8acfad0d4540/test_coverage)](https://codeclimate.com/github/gramps-graphql/data-source-base/test_coverage) [![npm version](https://img.shields.io/npm/v/@gramps/data-source-base.svg?style=flat)](https://www.npmjs.com/package/@gramps/data-source-base) [![Greenkeeper badge](https://badges.greenkeeper.io/gramps-graphql/data-source-base.svg)](https://greenkeeper.io/)\n\nA boilerplate and minimal example for a [GrAMPS data source](https://gramps.js.org/data-source/data-source-overview/).\n\n## Quickstart\n\nSet up a local data source in seconds with:\n\n```bash\n# 💥 zero dependencies! no global installs! create a new data source\nnpx graphql-cli create -b gramps-graphql/data-source-base data-source-mydata\n\n# 📂 move into the newly-created data source\ncd $_\n\n# 🚀 start the GraphQL Playground with your spankin’ new data source\nyarn dev\n```\n\n> **NOTE:** We recommend prefixing data source projects with `data-source-` for clarity and the eventual support of CLI tools to add data sources to your gateway. So if you’re creating a user management data source for the Acme company, we recommend `data-source-acme-users` or `data-source-acmeusers` as a directory/repo name.\n\n> **ALSO NOTE:** `$_` is a handy shortcut for using the last argument passed to the previous command. It [also does other stuff](https://unix.stackexchange.com/questions/280453/understand-the-meaning-of), but that's a rabbit hole for another time.\n\nAfter running `yarn dev`, you’ll see a message with URLs for the GraphQL gateway and the [GraphQL Playground](https://github.com/graphcool/graphql-playground). Open the Playground link (usually http://localhost:8080/playground if you don’t already have something running on port 8080), then run a query:\n\n```graphql\n{\n    getById(id: 123) {\n        id\n        name\n        lucky_numbers\n    }\n}\n```\n\n### To Develop with Mock Data\n\nAdd the `--mock` flag to enable mock data, which is helpful for working offline.\n\n```sh\n# Start the gateway with mock data\nyarn dev --mock\n```\n\nSee `src/mocks.js` to modify your mock resolvers.\n\n> **NOTE:** For more information on the GrAMPS CLI and its available options, [check out the docs](https://gramps.js.org/cli/cli-overview/).\n\n### To Run the Tests\n\nGrAMPS data sources start you off with 100% test coverage so you can build high-reliability GraphQL servers without a bunch of setup work.\n\nRun the tests with:\n\n```bash\nyarn test\n```\n\n## What's Inside?\n\nInside, you’ll find:\n\n* **Schema** — type definitions for GraphQL to interpret the data (see the\n  [GraphQL docs on schemas](http://graphql.org/learn/schema/))\n* **Resolvers** — functions to map the results of calls to model methods to\n  the schema\n* **Mock Resolvers** — mock functions for offline development\n* **Context** — an object with methods to interact with data that is passed to resolver functions\n\nEach file contains a `TODO` comment explaining the changes you’ll need to make to create a working data source.\n\nThe goal of this repo is to provide enough code to allow a working example of a data source and its related tests, but to limit how much boilerplate needs to be edited to get your own data source implemented.\n\n## Code Quality and Continuous Integration\n\nTo help ensure a reliable, easy-to-maintain data source, this example also includes:\n\n* Configuration for Travis CI (for automated testing) and Code Climate\n  (for quality analysis)\n* Starts you off right with test coverage at 💯\n* Provides testing helpers for common resolver testing patterns\n* Comes with docs! https://gramps.js.org/data-source/data-source-overview/\n\n### Notes for Developers\n\nCurrently, there is no watch capability (PRs welcome!), so the service needs to be stopped (`control` + `C`) and restarted (`yarn dev`) to reflect new changes to the data source.\n","readmeFilename":"README.md"}