{"repo":"teamwalnut/graphql-ppx","free":true,"listed":false,"github":"https://github.com/teamwalnut/graphql-ppx","clone":"git clone https://github.com/teamwalnut/graphql-ppx.git","description":"GraphQL language primitives for ReScript/ReasonML written in ReasonML","language":"OCaml","stars":263,"topics":["graphql","graphql-ppx","bucklescript","reasonml","ocaml","rescript","reason-native"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Typesafe GraphQL operations and fragments in ReasonML Documentation • Features • Installation • Usage • Roadmap • Contributing • License • Acknowledgements Documentation Go to the official documentation Features - Language level GraphQL primitives - Building block for GraphQL clients - 100% type safe Installation Schema graphql-ppx needs your graphql schema to be available in the form of a graphql schema.json file. The easiest way to add this to your project is using an introspection query to your backend. You can do this using get-graphql-schema : With ENDPOINT URL being the URL of your GraphQL endpoint. Cache graphql-ppx will generate a .graphql ppx cache folder alongside your JSON schema to optimize parsing performance. If you're using a version control system, you don't need to check it in. The next pages will provide further installation instructions whether you are using graphql-ppx with Bucklescript or using Reason Native. Bucklescript First, add it to you dependencies using npm or yarn : Second, add it to ppx-flags and bs-dependencies in your bsconfig.json : Native Caution! The Bucklescript version of graphql-ppx was almost completely rewritten for the 1.0 release, with many improvements and changes. This documentation will focus on the API of the bucklescript version. This means that most of the examples won't apply for the Reason Native version. Please take a look at the old documentation. At the same time we welcome contributions to modernize the Reason Native vers","default_branch":null,"files":null,"tree":[],"storefront":"/r/teamwalnut","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/teamwalnut/graphql-ppx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}