Releases: gqty-dev/gqty
Releases · gqty-dev/gqty
@gqty/[email protected]
2.2.0
Minor Changes
-
cba5c43: Don't skip config read on NODE_ENV === "test"
-
a4fc294: New Envelop / graphql-ez plugin that automatically generates gqty code based on schema and gqty.config.cjs
// graphql-ez // ... import { useGenerateGQty } from '@gqty/cli/envelop'; const ezApp = CreateApp({ // ... envelop: { plugins: [ // ... useGenerateGQty({ // ... }), ], }, });
// Envelop import { envelop } from '@envelop/core'; import { useGenerateGQty } from '@gqty/cli/envelop'; //... const getEnveloped = envelop({ plugins: [ // ... useGenerateGQty({ // ... }), ], });
Patch Changes
@gqty/[email protected]
[email protected]
@gqty/[email protected]
@gqty/[email protected]
[email protected]
2.0.2
Patch Changes
-
d014462: remove unused dependency
-
6b60991: improve normalization key auto-fetch logic
-
5cc001f: Fix: Prevent duplicated concurrent scheduler fetch
-
d6da2ae:
Variables
/Args
utility type to re-use variables types from any field with arguments.You can use either
Variables
orArgs
.import { query, Query } from '../gqty'; import type { Variables, Args } from 'gqty'; function getUserName(args: Variables<Query['user']>) { return query.user(args).name; } function getUserEmail(args: Args<typeof query['user']>) { return query.user(args).email; }
@gqty/[email protected]
[email protected]
2.0.1
Patch Changes
- 28e2c09: [Bug fixing breaking change] Fix types and retrieval of unions/interfaces of different object types