Skip to content

Commit f38a887

Browse files
committed
fix(codegen): expand boilerplate filter to cover clientMutationId, cursor, edge, pagination descriptions
Added additional PostGraphile boilerplate prefixes: - 'The exact same clientMutationId that was provided...' - 'A cursor for use in pagination.' - 'An edge for our...' - 'Information to aid in pagination.' - 'Reads and enables pagination through a set of...' - 'A list of edges which contains the...' - And several more generic PostGraphile descriptions Removes 2,468 additional lines of noise from the generated SDK.
1 parent cb82a82 commit f38a887

8 files changed

Lines changed: 12 additions & 2468 deletions

File tree

graphql/codegen/src/core/codegen/utils.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,20 @@ export function getQueryKeyPrefix(table: CleanTable): string {
441441
const POSTGRAPHILE_BOILERPLATE: string[] = [
442442
'The exclusive input argument for this mutation.',
443443
'An arbitrary string value with no semantic meaning.',
444+
'The exact same `clientMutationId` that was provided in the mutation input,',
444445
'The output of our',
445446
'All input for the',
447+
'A cursor for use in pagination.',
448+
'An edge for our',
449+
'Information to aid in pagination.',
450+
'Reads and enables pagination through a set of',
451+
'A list of edges which contains the',
452+
'The count of *all* `',
453+
'A list of `',
454+
'Our root query field',
455+
'Reads a single',
456+
'The root query type',
457+
'The root mutation type',
446458
];
447459

448460
/**

0 commit comments

Comments
 (0)