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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?