elm-graphql

GraphQL for Elm

Github星跟踪图

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

主要指标

概览
名称与所有者jahewson/elm-graphql
主编程语言TypeScript
编程语言TypeScript (语言数: 2)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2016-01-21 21:27:34
推送于2016-11-10 23:35:56
最后一次提交2016-10-19 11:12:28
发布数7
最新版本名称v1.0.6 (发布于 2016-10-19 11:12:28)
第一版名称v1.0.0 (发布于 2016-10-17 10:48:40)
用户参与
星数312
关注者数12
派生数27
提交数67
已启用问题?
问题数0
打开的问题数0
拉请求数1
打开的拉请求数2
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?