{"_id":"@baransu/graphql-ppx","_rev":"1-98434d8af2a6a26972d183fc822c7c27","name":"@baransu/graphql-ppx","dist-tags":{"dev":"1.0.0-af9918f.0","latest":"1.0.0-af9918f.0"},"versions":{"1.0.0-af9918f.0":{"name":"@baransu/graphql-ppx","version":"1.0.0-af9918f.0","description":"graphql-ppx rewriter for Bucklescript/ReasonML","repository":{"type":"git","url":"git+https://github.com/reasonml-community/graphql_ppx.git"},"author":{"name":"Tomasz Cichocinski","email":"tomaszcichocinski@gmail.com"},"contributors":[{"name":"Tomasz Cichocinski","email":"tomaszcichocinski@gmail.com"},{"name":"Jaap Frölich","email":"jfrolich@gmail.com"}],"license":"MIT","scripts":{"postinstall":"node ./copyPlatformBinaryInPlace.js"},"publishConfig":{"access":"public"},"dependencies":{"bs-platform":"^7.3.2"},"gitHead":"af9918fc5537e41a64f23cad286843f07ff9cacb","bugs":{"url":"https://github.com/reasonml-community/graphql_ppx/issues"},"homepage":"https://github.com/reasonml-community/graphql_ppx#readme","_id":"@baransu/graphql-ppx@1.0.0-af9918f.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5vVgpeL0auZ9GjeDd223tyG6DPuzVH33tY1/Df4C/h8HvS3eDPVDSv91a/XtqFrPK4fTaDovyl+PBByI/1QH0g==","shasum":"6a07a51ba3f9b4af37558bb21521d3e49b175ba4","tarball":"https://registry.npmjs.org/@baransu/graphql-ppx/-/graphql-ppx-1.0.0-af9918f.0.tgz","fileCount":415,"unpackedSize":63230164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6vAxCRA9TVsSAnZWagAAjKQP/0zkaQQh84RhXtbCiMTD\ntGvUs3Btte4la9oaMqSVSY3TeK7V1c2AkFtdKNPfR0mZqTRsVPof9HTWjFqQ\n4lrOXEscMk0fsrqruW+p1MUrPeuTMa9r//2MS4cZcr6scWOQ0pK6DTaTaPM5\ndXybQqZUUCG2dWnBx/ZJER7nI+b+GMsCI/vZfJXSY+IC8Udw44lXPAlJGzkI\n3PiZMM0irZWOQ8khhb2a4H3hrQqmqSJmEFwI+bT4Hzv22dWZPJVJ/At4CT/E\nG1xMOAeBSosatL0PASVAuw3v960rF+efzF1gxfFjnj2c847r/7Ay6bl2WjVz\nq++RgfANr956QXhs7SLvL5hWAdD5tg99E1D8Gc+CtSBMqT/4bsgLJo45vOFI\nA6xrh29MB7iTLwU6N63Pb9LbSWU4p/6wopHUwSlbH6BNgJUbLBV/zblnA/hL\ni+h0jncAcR2IWCzoAWbqZweGRGz0e/xntybXbBpSPZhy7gIuY1Ib2XBHYhpN\nipz80SIaWQDG8osGxkOBKA4ueA1+P3iz5Lw8e+pFcPK4uJAs6gaOjA+6mEFA\n6GpZvnklKoiU5XA9JZOmMF4x1M5vaAmlw3QUcCLUdGCwu5aX7YvUMgtd2mF2\nU7v0KkKxm7eGd1QwnI01IOXOhBZ1ruoGmWSGfHP0TorTwT/AOGD/edHu/DTo\ntToz\r\n=D7ow\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXOJR6BEXH7UeYR8uHea0D2y7GiInjcX6Ucr1XcWQAyQIgKLfjrC0E52cD2EeGGJKBW96AJ7PaklI/mn5sidBUn8o="}]},"maintainers":[{"name":"baransu","email":"tomaszcichocinski@gmail.com"}],"_npmUser":{"name":"baransu","email":"tomaszcichocinski@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-ppx_1.0.0-af9918f.0_1592455216486_0.24328262793016897"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-18T04:40:16.441Z","1.0.0-af9918f.0":"2020-06-18T04:40:16.937Z","modified":"2022-04-04T17:43:02.524Z"},"maintainers":[{"name":"baransu","email":"tomaszcichocinski@gmail.com"}],"description":"graphql-ppx rewriter for Bucklescript/ReasonML","homepage":"https://github.com/reasonml-community/graphql_ppx#readme","repository":{"type":"git","url":"git+https://github.com/reasonml-community/graphql_ppx.git"},"contributors":[{"name":"Tomasz Cichocinski","email":"tomaszcichocinski@gmail.com"},{"name":"Jaap Frölich","email":"jfrolich@gmail.com"}],"author":{"name":"Tomasz Cichocinski","email":"tomaszcichocinski@gmail.com"},"bugs":{"url":"https://github.com/reasonml-community/graphql_ppx/issues"},"license":"MIT","readme":"> This is README for the upcoming 1.0 release. It's available via \"@baransu/graphql_ppx@next\", contains breaking changes and may not work. If you're using 0.x version please check [README from master branch](https://github.com/reasonml-community/graphql_ppx/blob/master/README.md)\n\n<p align=\"center\">\n    <img width=\"200\" src=\"https://beta.graphql-ppx.com/img/logo.svg\" alt=\"Logo\">\n  \t<br><br>\n    Typesafe GraphQL operations and fragments in ReasonML\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/reasonml-community/graphql_ppx/actions\">\n    <img src=\"https://github.com/reasonml-community/graphql_ppx/workflows/graphql_ppx%20pipeline/badge.svg\" alt=\"Build Status\" />\n  </a>\n  <a href=\"https://badge.fury.io/js/%40baransu%2Fgraphql_ppx_re.svg\">\n    <img src=\"https://badge.fury.io/js/%40baransu%2Fgraphql_ppx_re.svg\" alt=\"npm version\" />\n  </a>\n</p>\n\n<p align=\"center\">\n  <a href=\"#documentation\">Documentation</a> •\n  <a href=\"#features\">Features</a> •\n  <a href=\"#installation\">Installation</a> •\n  <a href=\"#usage\">Usage</a> •\n  <a href=\"#roadmap\">Roadmap</a> •\n  <a href=\"#contributing\">Contributing</a> •\n  <a href=\"#license\">License</a> •\n  <a href=\"#acknowledgements\">Acknowledgements</a>\n</p>\n\n## Documentation\n\n[Go to the official documentation](https://beta.graphql-ppx.com)\n\n## Features\n\n- Language level GraphQL primitives\n\n- Building block for GraphQL clients\n\n- 100% type safe\n\n## Installation\n\n### Schema\n\n`graphql-ppx` needs your graphql schema to be available in the form of a\n`graphql_schema.json` file.\n\nThe easiest way to add this to your project is using an\n[introspection query](https://github.com/graphql/graphql-js/blob/master/src/utilities/introspectionQuery.js)\nto your backend. You can do this using `get-graphql-schema`:\n\n```sh\nnpx get-graphql-schema ENDPOINT_URL -j > graphql_schema.json\n```\n\nWith `ENDPOINT_URL` being the URL of your GraphQL endpoint.\n\n### Cache\n\n`graphql-ppx` will generate a `.graphql_ppx_cache` folder alongside your JSON\nschema to optimize parsing performance. If you're using a version control\nsystem, you don't need to check it in.\n\nThe next pages will provide further installation instructions whether you are\nusing `graphql-ppx` with Bucklescript or using Reason Native.\n\n### Bucklescript\n\nFirst, add it to you dependencies using `npm` or `yarn`:\n\n```sh\nyarn add @baransu/graphql_ppx_re@next --dev\n# or\nnpm install @baransu/graphql_ppx_re@next  --saveDev\n```\n\nSecond, add it to `ppx-flags` and `bs-dependencies` in your `bsconfig.json`:\n\n```json\n\"ppx-flags\": [\"@baransu/graphql_ppx_re/ppx\"],\n\"bs-dependencies\": [\"@baransu/graphql_ppx_re\"]\n```\n\n### Native\n\n#### Caution!\n\nThe Bucklescript version of `graphql-ppx` was almost completely rewritten for the\n1.0 release, with many improvements and changes. This documentation will focus\non the API of the bucklescript version. This means that most of the examples\nwon't apply for the Reason Native version. Please take a look at the\n[old documentation](https://github.com/reasonml-community/graphql_ppx/tree/v0.7.1).\nAt the same time we welcome contributions to modernize the Reason Native version\nof `graphql-ppx`\n:::\n\nYou need to provide the following dependency in your `esy.json` file\n\n```json\n{\n  \"dependencies\": {\n    \"graphql_ppx\": \"*\"\n  },\n  \"resolutions\": {\n    \"graphql_ppx\": \"reasonml-community/graphql_ppx:esy.json#<use latest stable commit from master>\"\n  }\n}\n```\n\nand update your `dune` file:\n\n```\n(preprocess (pps graphql_ppx))\n```\n\n## Usage\n\nMake your first query:\n\n```reason\n[%graphql {|\n  query UserQuery {\n    user {\n      id\n      name\n    }\n  }\n|}];\n```\n\n[Open getting started in the docs](https://beta.graphql-ppx/docs/getting-started)\n\n## Roadmap\n\nSee our [development board](https://github.com/reasonml-community/graphql_ppx/projects/1) for a list of selected features and issues.\n\n## Contributing\n\nWe'd love your help improving `graphql-ppx`!\n\nTake a look at our [Contributing Guide](https://beta.graphql-ppx.com/docs/contributing) to get started.\n\n## License\n\nDistributed under the MIT License. See [LICENSE](LICENSE) for more information.\n\n## Acknowledgements\n\nThanks to everyone who [contributed](https://github.com/reasonml-community/graphql_ppx/graphs/contributors) to `graphql-ppx`!\n\nThis project builds upon [mhallin/graphql_ppx](https://github.com/mhallin/graphql_ppx). It wouldn't be possible without\ngreat work of [mhallin/graphql_ppx contributors](https://github.com/mhallin/graphql_ppx/graphs/contributors).\n","readmeFilename":"README.md"}