@nestjs/graphql
Version:
Nest - modern, fast, powerful node.js web framework (@graphql)
13 lines • 686 B
TypeScript
import { GraphQLSchema } from 'graphql';
/**
* graphql v17 exposes argument and input field defaults through the new
* `default` property and deprecates `defaultValue`. Schema elements created by
* packages that still rely on `defaultValue` (e.g. `@apollo/subgraph`) end up
* with `default` left undefined, which makes `printSchemaWithDirectives` drop
* the default from the printed SDL.
*
* Backfilling `default` from `defaultValue` keeps those defaults in the SDL. It
* is a no-op on graphql v16, where `default` does not exist.
*/
export declare function backfillDefaultValues(schema: GraphQLSchema): GraphQLSchema;
//# sourceMappingURL=backfill-default-values.util.d.ts.map