【文件属性】:
文件名称:meteor-graphql:支持Meteor中GraphQL文件的编译器插件
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-10 03:18:42
graphql package meteor import build-tool
流星图
支持Meteor中GraphQL文件的编译器插件
安装
meteor add swydo:graphql
用法
查询
# query.grahql
query getPerson ( $id : ID ! ) {
person ( id : $id ) {
name
email
}
}
import query from './query.graphql' ;
// See https://github.com/apollographql/apollo-client for setup
const client = new ApolloClient ( ) ;
// The query is parsed and can be directly passed to the Apollo Client
client . query ( { query } )
【文件预览】:
meteor-graphql-master
----.travis.yml(433B)
----specs()
--------client.spec.js(33B)
--------common()
--------examples()
--------server.spec.js(33B)
----package.json(1KB)
----package.js(943B)
----.eslintrc.json(440B)
----compiler.js(981B)
----LICENSE(1KB)
----.gitignore(42B)
----CHANGELOG.md(820B)
----plugin.js(219B)
----README.md(3KB)