You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/plugins/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ Below is a table that lists all available plugins which can be installed via NPM
26
26
|`flow`| Generate types for Flow type based on your GraphQL schema |[`graphql-codegen-flow`](./flow.md)|
27
27
|`flow-resolvers`| Generate resolvers signature for Flow |[`graphql-codegen-flow-resolvers`](./flow-resolvers.md)|
28
28
|`flow-documents`| Generate types for Flow type based on your GraphQL documents |[`graphql-codegen-flow-documents`](./flow-documents.md)|
29
+
|`reason-client`| Generate ReasonML types based on your GraphQL schema for use in a client application |[`graphql-codegen-reason-client`](./reason-client.md)|
29
30
30
31
In addition, you can build your own code generating plugins based on your specific needs. For more information, check [this doc page](../custom-codegen/index).
_Built and maintained by [kgoggin](https://github.com/kgoggin)_
7
+
8
+
A plugin for GraphQL Codegen to generate ReasonML types based on your GraphQL schema for use in a client application.
9
+
10
+
## Installation
11
+
12
+
Install using npm/yarn:
13
+
14
+
```shell
15
+
yarn add graphql-codegen-reason-client -D
16
+
```
17
+
18
+
## Examples
19
+
20
+
Set up your project per the GraphQL Codegen Docs, and specify this plugin in your codegen.yml:
21
+
22
+
```yml
23
+
schema: http://path.to.your.app
24
+
generates:
25
+
src/GraphQLTypes.re:
26
+
- reason-client
27
+
```
28
+
29
+
## Usage & Documentation
30
+
31
+
For the complete documentation, please refer to [kgoggin/graphql-codegen-reason](https://github.com/kgoggin/graphql-codegen-reason) repository.
0 commit comments