- fix headers being overriden
- receive extra fetch options with callback
- pass alias thing to .js
- expose replaceSystemAliases
- auto alias fields under unions to prevent conflicts
- auto stringify incoming args that need to be strings
- Change the way we parse select fields
- support scalars for select fields
- Fix: export QueryGenqlSelection as a type
- underscore runtime files to prevent conflicts with nextjs file conventions
- export fragmentOnRecursiveCollection
- introduce fragmentOnRecursiveCollection (a basehub specific thing)
- fix bug
- recursively omit __fragmentOn type
- export also QueryGenqlSelection and QueryResult
- bring back an export
- Introduce fragmentOn and just export that from the schema
- Log changes
- Testing basehub fork
- Deprecate cli options --esm
- Fix array types when array content is nullable, remorses#144. Thanks to @wellguimaraes
- Fix custom scalars typed with object types
- Make required top level arguments with defaults non required
- __scalar: true should exclude scalars with required arguments
Fixed problem generating interfaces without any implementation
Support for more than one : in -S option (by @boredland)
Fixed declaration files generations for enums (by @DanielRose)
Add as const
on enum objects to not use type object values as strings
Added enumGraphqlEnumName
exports to get access to enum strings
- Query any interface on an union, not only the common ones
- Fixed __typename always optional
- Do not query falsy values when using __scalar
- Ability to query interfaces that a union implements remorses#44
genql-cli
package becomes@genql/cli
genql-runtime
package becomes@genql/runtime
- headers can be an async function
- you can now add an operation name to a query using
__name
- only generate commonjs code by default (using require and module.exports) to prevent people from importing from
index.esm
, use the--esm
flag if you want to use esm - response types only include requested fields
- added built in batching (see https://genql.dev/docs/usage/batching-queries)
--sort
flag- generated
types.json
now istypes.js
- smaller
types.js
and hence smaller bundle size - made the website page converter to convert from graphql queries to genql code: https://genql.dev/converter
- custom
fetcher
now has type(operation: GraphqlOperation | GraphqlOperation[], ) => Promise<ExecutionResult>
to support built in batching - added a
@genql/cli/printer
module to print a graphql query AST to genql code