在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):teamwalnut/graphql-ppx开源软件地址(OpenSource Url):https://github.com/teamwalnut/graphql-ppx开源编程语言(OpenSource Language):OCaml 93.5%开源软件介绍(OpenSource Introduction):
Documentation • Features • Installation • Usage • Roadmap • Contributing • License • Acknowledgements DocumentationGo to the official documentation Features
InstallationSchema
The easiest way to add this to your project is using an
introspection query
to your backend. You can do this using npx get-graphql-schema ENDPOINT_URL -j > graphql_schema.json With Cache
The next pages will provide further installation instructions whether you are
using BucklescriptFirst, add it to you dependencies using yarn add @reasonml-community/graphql-ppx --dev
# or
npm install @reasonml-community/graphql-ppx --saveDev Second, add it to "ppx-flags": ["@reasonml-community/graphql-ppx/ppx"],
"bs-dependencies": ["@reasonml-community/graphql-ppx"] NativeCaution!The Bucklescript version of You need to provide the following dependency in your {
"dependencies": {
"graphql-ppx": "*"
},
"resolutions": {
"graphql-ppx": "reasonml-community/graphql-ppx:esy.json#<use latest stable commit from master>"
}
} and update your
UsageMake your first query: Reason[%graphql {|
query UserQuery {
user {
id
name
}
}
|}]; ReScript%graphql(`
query UserQuery {
user {
id
name
}
}
`) Open getting started in the docs RoadmapSee our development board for a list of selected features and issues. ContributingWe'd love your help improving Take a look at our Contributing Guide to get started. LicenseDistributed under the MIT License. See LICENSE for more information. AcknowledgementsThanks to everyone who contributed to This project builds upon mhallin/graphql_ppx. It wouldn't be possible without great work of mhallin/graphql_ppx contributors. 1 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论