elm-graphql

GraphQL for Elm

Github stars Tracking Chart

elm-graphql

elm-graphql generates Elm code for making GraphQL queries in a type-safe manner.

At compile time, elm-graphql takes GraphQL schema and named queries in a
.graphql file and generates corresponding Elm types. The schema is obtained by introspection
of a live GraphQL server.

elm-graphql is simply for making queries, it is not a framework like Relay but it could be the foundation other abstractions in the future.

Install

npm install -g elm-graphql

Usage

Configure the GraphQL endpoint URL. This will be saved in elm-package.json:

elm graphql --init URL

Now you can generate an Elm module for each .graphql file:

elm graphql

Example

Check out my elm-graphql-demo which provides a sample application and includes full build instructions.

How it works

See the wiki page, how elm-graphql works for more details.

Projects using elm-graphql

Main metrics

Overview
Name With Ownerjahewson/elm-graphql
Primary LanguageTypeScript
Program languageTypeScript (Language Count: 2)
Platform
License:BSD 2-Clause "Simplified" License
所有者活动
Created At2016-01-21 21:27:34
Pushed At2016-11-10 23:35:56
Last Commit At2016-10-19 11:12:28
Release Count7
Last Release Namev1.0.6 (Posted on 2016-10-19 11:12:28)
First Release Namev1.0.0 (Posted on 2016-10-17 10:48:40)
用户参与
Stargazers Count312
Watchers Count13
Fork Count27
Commits Count67
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count1
Pull Requests Open Count2
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private