Skip to content

Commit

Permalink
readme: Add note about generator
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ode committed Feb 8, 2023
1 parent 0350627 commit aee6eba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,14 @@ const MessageStore = createModelStore('MessageStore', MessageModel)
}));
```

## Model generator (GraphQL)

Generate mobx-state-tree models from your graphql schema.

```ts
npx mst-query-generator schema.graphql
```

## Cache

Queries are cached by instance and request arguments. The option `staleTime` controls how much time should pass before a cached value needs to be refetched from the server.
Expand Down

0 comments on commit aee6eba

Please sign in to comment.