{"repo":"dillonkearns/elm-graphql","free":true,"listed":false,"github":"https://github.com/dillonkearns/elm-graphql","clone":"git clone https://github.com/dillonkearns/elm-graphql.git","description":"Autogenerate type-safe GraphQL queries in Elm.","language":"Elm","stars":787,"topics":["elm","graphql"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"dillonkearns/elm-graphql Why use this package over the other available Elm GraphQL packages? This is the only one that generates type-safe code for your entire schema. Check out this blog post, Type-Safe & Composable GraphQL in Elm, to learn more about the motivation for this library. (It's also the only type-safe library with Elm 0.18 or 0.19 support, see this discourse thread). I built this package because I wanted to have something that: 1. Gives you type-safe GraphQL queries (if it compiles, it's valid according to the schema), 2. Creates decoders for you in a seamless and failsafe way, and 3. Eliminates GraphQL features in favor of Elm language constructs where possible for a simpler UX (for example, GraphQL variables & fragments should just be Elm functions, constants, lets). See an example in action on Ellie. See more end-to-end example code in the examples/ folder. Overview dillonkearns/elm-graphql is an Elm package and accompanying command-line code generator that creates type-safe Elm code for your GraphQL endpoint. You don't write any decoders for your API with dillonkearns/elm-graphql , instead you simply select which fields you would like, similar to a standard GraphQL query but in Elm. For example, this GraphQL query would look like this in dillonkearns/elm-graphql (the code in this example that is prefixed with StarWars is auto-generated) GraphQL and Elm are a perfect match because GraphQL is used to enforce the types that your API takes as inputs and outputs, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/dillonkearns","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dillonkearns/elm-graphql/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."}