Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljharvey committed Apr 5, 2020
1 parent 87789f1 commit f2e8694
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,29 @@ This library is a plugin for `GraphQL Code Generator` that creates `fast-check`

## How to use

_ahem_
Add the library to your project (and GraphQL Codegen if you need it):

```bash
yarn add graphql-codegen-fast-check @graphql-codegen/cli
```

Create a `codegen.yml` file.

```yaml
schema: path-to-my-graphql-schema.graphql
generates:
output.ts:
- graphql-codegen-fast-check
```

Then run the generator in the same folder as your `codegen.yml` file:

```bash
yarn graphql-codegen
```

(hopefully) Success! You should have an `output.ts` folder full of `arbitrary`s
you can use in your project.

## What's working?

Expand Down

0 comments on commit f2e8694

Please sign in to comment.