graphql-cli-generate-fragments
graphql-cli-generate-fragments copied to clipboard
Generate Fragments for Graphql Schemas
Is this project still being maintained, if so I can add more information about the bug. i
```js import {RouteModelFragment} from 'fragments/foo.fragments' const query = gql` query maintenanceRoutes { routes { ...RouteModelFragment } zones { id zoneName } } ${RouteModelFragment} ` ``` ``` $ apollo codegen:generate --schema=schema.graphql...
I have a schema that has an array field (`notificationEmails` in the example below). The generated fragment for this schema is missing the field. Example schema: ``` type Note {...
Ended up with the same errror than #6 . Found the issue ;)
Things were going well until the last line: ``` npm i -g graphql-cli graphql-cli-generate-fragments graphql init graphql get-schema graphql generate-fragments ``` Get the usage help with the last line saying:...