From 0e74e8410e0d6fd5aead0cb44a0dd810084a6b91 Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Mon, 21 Oct 2024 14:54:07 -0400 Subject: [PATCH] regen --- .../fixture/graffle/modules/SelectionSets.ts | 150 +++++++++--------- .../__snapshots__/generate.test.ts.snap | 102 ++++++------ src/generator/generators/SelectionSets.ts | 8 +- src/generator/helpers/render.ts | 2 +- src/lib/grafaid/graphql.ts | 6 +- .../graffle/modules/SelectionSets.ts | 150 +++++++++--------- .../graffle/modules/SelectionSets.ts | 4 +- .../pokemon/graffle/modules/SelectionSets.ts | 86 +++++----- .../graffle/modules/SelectionSets.ts | 4 +- website/graffle/modules/SelectionSets.ts | 68 ++++---- website/pokemon/modules/SelectionSets.ts | 86 +++++----- 11 files changed, 331 insertions(+), 335 deletions(-) diff --git a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SelectionSets.ts b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SelectionSets.ts index 8b31f580..2efcbc73 100644 --- a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SelectionSets.ts +++ b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SelectionSets.ts @@ -56,11 +56,11 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `id` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Mutation.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Mutation.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -152,255 +152,255 @@ export namespace Mutation { export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `InputObjectNested` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `InputObjectNested` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ InputObjectNested?: | Query.InputObjectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `InputObjectNestedNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `InputObjectNestedNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ InputObjectNestedNonNull?: | Query.InputObjectNestedNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `abcEnum` field on the `Query` object. Its type is Enum. + * Select the `abcEnum` field on the `Query` object. Its type is `ABCEnum` (a `Enum` kind of type). */ abcEnum?: Query.abcEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `argInputObjectCircular` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `argInputObjectCircular` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ argInputObjectCircular?: | Query.argInputObjectCircular$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `date` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date?: Query.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArg` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArg` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArg?: Query.dateArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgInputObject` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgInputObject` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgInputObject?: | Query.dateArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgList?: Query.dateArgList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNull?: Query.dateArgNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNullList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNullList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNullList?: | Query.dateArgNonNullList<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNullListNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNullListNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNullListNonNull?: | Query.dateArgNonNullListNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateInterface1` field on the `Query` object. Its type is Interface. + * Select the `dateInterface1` field on the `Query` object. Its type is `DateInterface1` (a `Interface` kind of type). */ dateInterface1?: | Query.dateInterface1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateList?: Query.dateList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateListList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateListList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateListList?: Query.dateListList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateListNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateListNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateListNonNull?: | Query.dateListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateNonNull?: Query.dateNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateObject1` field on the `Query` object. Its type is OutputObject. + * Select the `dateObject1` field on the `Query` object. Its type is `DateObject1` (a `OutputObject` kind of type). */ dateObject1?: Query.dateObject1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateUnion` field on the `Query` object. Its type is Union. + * Select the `dateUnion` field on the `Query` object. Its type is `DateUnion` (a `Union` kind of type). */ dateUnion?: Query.dateUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `error` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `error` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ error?: Query.error$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Query.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Query.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interface` field on the `Query` object. Its type is Interface. + * Select the `interface` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interface?: Query.$interface$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interfaceNonNull` field on the `Query` object. Its type is Interface. + * Select the `interfaceNonNull` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interfaceNonNull?: | Query.interfaceNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interfaceWithArgs` field on the `Query` object. Its type is Interface. + * Select the `interfaceWithArgs` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interfaceWithArgs?: | Query.interfaceWithArgs<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listInt` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listInt` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listInt?: Query.listInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listIntNonNull` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listIntNonNull` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listIntNonNull?: | Query.listIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listListInt` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listListInt` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listListInt?: Query.listListInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listListIntNonNull` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listListIntNonNull` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listListIntNonNull?: | Query.listListIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `lowerCaseUnion` field on the `Query` object. Its type is Union. + * Select the `lowerCaseUnion` field on the `Query` object. Its type is `lowerCaseUnion` (a `Union` kind of type). */ lowerCaseUnion?: | Query.lowerCaseUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `object` field on the `Query` object. Its type is OutputObject. + * Select the `object` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ object?: Query.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectList` field on the `Query` object. Its type is OutputObject. + * Select the `objectList` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectList?: Query.objectList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectListNonNull` field on the `Query` object. Its type is OutputObject. + * Select the `objectListNonNull` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectListNonNull?: | Query.objectListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectNested` field on the `Query` object. Its type is OutputObject. + * Select the `objectNested` field on the `Query` object. Its type is `ObjectNested` (a `OutputObject` kind of type). */ objectNested?: Query.objectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectNonNull` field on the `Query` object. Its type is OutputObject. + * Select the `objectNonNull` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectNonNull?: | Query.objectNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectWithArgs` field on the `Query` object. Its type is OutputObject. + * Select the `objectWithArgs` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectWithArgs?: | Query.objectWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `result` field on the `Query` object. Its type is Union. + * Select the `result` field on the `Query` object. Its type is `Result` (a `Union` kind of type). */ result?: Query.result<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `resultNonNull` field on the `Query` object. Its type is Union. + * Select the `resultNonNull` field on the `Query` object. Its type is `Result` (a `Union` kind of type). */ resultNonNull?: | Query.resultNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `string` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `string` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ string?: Query.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgEnum` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgEnum` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgEnum?: | Query.stringWithArgEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgInputObject` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgInputObject` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgInputObject?: | Query.stringWithArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgInputObjectRequired` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgInputObjectRequired` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgInputObjectRequired?: | Query.stringWithArgInputObjectRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgs` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgs` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgs?: | Query.stringWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithListArg` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithListArg` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithListArg?: | Query.stringWithListArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithListArgRequired` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithListArgRequired` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithListArgRequired?: | Query.stringWithListArgRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithRequiredArg` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithRequiredArg` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithRequiredArg?: | Query.stringWithRequiredArg<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBar` field on the `Query` object. Its type is Union. + * Select the `unionFooBar` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBar?: Query.unionFooBar$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBarNonNull` field on the `Query` object. Its type is Union. + * Select the `unionFooBarNonNull` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBarNonNull?: | Query.unionFooBarNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBarWithArgs` field on the `Query` object. Its type is Union. + * Select the `unionFooBarWithArgs` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBarWithArgs?: | Query.unionFooBarWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionObject` field on the `Query` object. Its type is OutputObject. + * Select the `unionObject` field on the `Query` object. Its type is `ObjectUnion` (a `OutputObject` kind of type). */ unionObject?: Query.unionObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionObjectNonNull` field on the `Query` object. Its type is OutputObject. + * Select the `unionObjectNonNull` field on the `Query` object. Its type is `ObjectUnion` (a `OutputObject` kind of type). */ unionObjectNonNull?: | Query.unionObjectNonNull$Expanded<$Scalars> @@ -1849,7 +1849,7 @@ export interface InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Sc export interface Bar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `int` field on the `Bar` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Bar` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: Bar.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1921,7 +1921,7 @@ export interface DateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `date1` field on the `DateObject1` object. Its type is `Date` (a `Scalar`). + * Select the `date1` field on the `DateObject1` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date1?: DateObject1.date1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1993,7 +1993,7 @@ export interface DateObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `date2` field on the `DateObject2` object. Its type is `Date` (a `Scalar`). + * Select the `date2` field on the `DateObject2` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date2?: DateObject2.date2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2063,11 +2063,11 @@ export namespace DateObject2 { export interface ErrorOne<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `infoId` field on the `ErrorOne` object. Its type is `ID` (a `Scalar`). + * Select the `infoId` field on the `ErrorOne` object. Its type is `ID` (a `ScalarStandard` kind of type). */ infoId?: ErrorOne.infoId$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `message` field on the `ErrorOne` object. Its type is `String` (a `Scalar`). + * Select the `message` field on the `ErrorOne` object. Its type is `String` (a `ScalarStandard` kind of type). */ message?: ErrorOne.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2159,11 +2159,11 @@ export namespace ErrorOne { export interface ErrorTwo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `infoInt` field on the `ErrorTwo` object. Its type is `Int` (a `Scalar`). + * Select the `infoInt` field on the `ErrorTwo` object. Its type is `Int` (a `ScalarStandard` kind of type). */ infoInt?: ErrorTwo.infoInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `message` field on the `ErrorTwo` object. Its type is `String` (a `Scalar`). + * Select the `message` field on the `ErrorTwo` object. Its type is `String` (a `ScalarStandard` kind of type). */ message?: ErrorTwo.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2258,7 +2258,7 @@ export namespace ErrorTwo { */ export interface Foo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Foo` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Foo` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Foo.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2328,27 +2328,27 @@ export namespace Foo { export interface Object1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `ABCEnum` field on the `Object1` object. Its type is Enum. + * Select the `ABCEnum` field on the `Object1` object. Its type is `ABCEnum` (a `Enum` kind of type). */ ABCEnum?: Object1.ABCEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `boolean` field on the `Object1` object. Its type is `Boolean` (a `Scalar`). + * Select the `boolean` field on the `Object1` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ boolean?: Object1.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `float` field on the `Object1` object. Its type is `Float` (a `Scalar`). + * Select the `float` field on the `Object1` object. Its type is `Float` (a `ScalarStandard` kind of type). */ float?: Object1.float$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Object1` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object1` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Object1.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `int` field on the `Object1` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Object1` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: Object1.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `string` field on the `Object1` object. Its type is `String` (a `Scalar`). + * Select the `string` field on the `Object1` object. Its type is `String` (a `ScalarStandard` kind of type). */ string?: Object1.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2530,13 +2530,13 @@ export interface Object1ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Object1ImplementingInterface` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object1ImplementingInterface` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: | Object1ImplementingInterface.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `int` field on the `Object1ImplementingInterface` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Object1ImplementingInterface` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: | Object1ImplementingInterface.int$Expanded<$Scalars> @@ -2632,13 +2632,13 @@ export interface Object2ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the `boolean` field on the `Object2ImplementingInterface` object. Its type is `Boolean` (a `Scalar`). + * Select the `boolean` field on the `Object2ImplementingInterface` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ boolean?: | Object2ImplementingInterface.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Object2ImplementingInterface` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object2ImplementingInterface` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: | Object2ImplementingInterface.id$Expanded<$Scalars> @@ -2734,11 +2734,11 @@ export interface ObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarM extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `ObjectNested` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `ObjectNested` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: ObjectNested.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `object` field on the `ObjectNested` object. Its type is OutputObject. + * Select the `object` field on the `ObjectNested` object. Its type is `Object1` (a `OutputObject` kind of type). */ object?: ObjectNested.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2829,7 +2829,7 @@ export interface ObjectUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `fooBarUnion` field on the `ObjectUnion` object. Its type is Union. + * Select the `fooBarUnion` field on the `ObjectUnion` object. Its type is `FooBarUnion` (a `Union` kind of type). */ fooBarUnion?: | ObjectUnion.fooBarUnion$Expanded<$Scalars> @@ -2902,7 +2902,7 @@ export interface lowerCaseObject<$Scalars extends $$Utilities.Schema.Scalar.Scal extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `lowerCaseObject` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `lowerCaseObject` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: lowerCaseObject.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2974,7 +2974,7 @@ export interface lowerCaseObject2<$Scalars extends $$Utilities.Schema.Scalar.Sca extends $Select.Bases.ObjectLike { /** - * Select the `int` field on the `lowerCaseObject2` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `lowerCaseObject2` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: lowerCaseObject2.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/src/generator/generator/__snapshots__/generate.test.ts.snap b/src/generator/generator/__snapshots__/generate.test.ts.snap index 40b00585..1400b09a 100644 --- a/src/generator/generator/__snapshots__/generate.test.ts.snap +++ b/src/generator/generator/__snapshots__/generate.test.ts.snap @@ -2419,11 +2419,11 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the \`id\` field on the \`Mutation\` object. Its type is ScalarStandard. + * Select the \`id\` field on the \`Mutation\` object. Its type is \`ID\` (a \`Scalar\`). */ id?: Mutation.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`idNonNull\` field on the \`Mutation\` object. Its type is ScalarStandard. + * Select the \`idNonNull\` field on the \`Mutation\` object. Its type is \`ID\` (a \`Scalar\`). */ idNonNull?: Mutation.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2515,13 +2515,13 @@ export namespace Mutation { export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the \`InputObjectNested\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`InputObjectNested\` field on the \`Query\` object. Its type is \`ID\` (a \`Scalar\`). */ InputObjectNested?: | Query.InputObjectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`InputObjectNestedNonNull\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`InputObjectNestedNonNull\` field on the \`Query\` object. Its type is \`ID\` (a \`Scalar\`). */ InputObjectNestedNonNull?: | Query.InputObjectNestedNonNull<$Scalars> @@ -2531,41 +2531,41 @@ export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {} */ abcEnum?: Query.abcEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`argInputObjectCircular\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`argInputObjectCircular\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ argInputObjectCircular?: | Query.argInputObjectCircular$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`date\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`date\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ date?: Query.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArg\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateArg\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateArg?: Query.dateArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgInputObject\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateArgInputObject\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateArgInputObject?: | Query.dateArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgList\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateArgList\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateArgList?: Query.dateArgList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgNonNull\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateArgNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateArgNonNull?: Query.dateArgNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgNonNullList\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateArgNonNullList\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateArgNonNullList?: | Query.dateArgNonNullList<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgNonNullListNonNull\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateArgNonNullListNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateArgNonNullListNonNull?: | Query.dateArgNonNullListNonNull<$Scalars> @@ -2577,21 +2577,21 @@ export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {} | Query.dateInterface1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateList\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateList\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateList?: Query.dateList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateListList\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateListList\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateListList?: Query.dateListList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateListNonNull\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateListNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateListNonNull?: | Query.dateListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateNonNull\` field on the \`Query\` object. Its type is ScalarCustom. + * Select the \`dateNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). */ dateNonNull?: Query.dateNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** @@ -2603,15 +2603,15 @@ export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {} */ dateUnion?: Query.dateUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`error\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`error\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ error?: Query.error$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`id\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`id\` field on the \`Query\` object. Its type is \`ID\` (a \`Scalar\`). */ id?: Query.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`idNonNull\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`idNonNull\` field on the \`Query\` object. Its type is \`ID\` (a \`Scalar\`). */ idNonNull?: Query.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** @@ -2631,21 +2631,21 @@ export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {} | Query.interfaceWithArgs<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`listInt\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`listInt\` field on the \`Query\` object. Its type is \`Int\` (a \`Scalar\`). */ listInt?: Query.listInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`listIntNonNull\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`listIntNonNull\` field on the \`Query\` object. Its type is \`Int\` (a \`Scalar\`). */ listIntNonNull?: | Query.listIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`listListInt\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`listListInt\` field on the \`Query\` object. Its type is \`Int\` (a \`Scalar\`). */ listListInt?: Query.listListInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`listListIntNonNull\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`listListIntNonNull\` field on the \`Query\` object. Its type is \`Int\` (a \`Scalar\`). */ listListIntNonNull?: | Query.listListIntNonNull$Expanded<$Scalars> @@ -2697,47 +2697,47 @@ export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {} | Query.resultNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`string\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`string\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ string?: Query.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithArgEnum\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`stringWithArgEnum\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ stringWithArgEnum?: | Query.stringWithArgEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithArgInputObject\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`stringWithArgInputObject\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ stringWithArgInputObject?: | Query.stringWithArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithArgInputObjectRequired\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`stringWithArgInputObjectRequired\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ stringWithArgInputObjectRequired?: | Query.stringWithArgInputObjectRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithArgs\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`stringWithArgs\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ stringWithArgs?: | Query.stringWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithListArg\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`stringWithListArg\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ stringWithListArg?: | Query.stringWithListArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithListArgRequired\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`stringWithListArgRequired\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ stringWithListArgRequired?: | Query.stringWithListArgRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithRequiredArg\` field on the \`Query\` object. Its type is ScalarStandard. + * Select the \`stringWithRequiredArg\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). */ stringWithRequiredArg?: | Query.stringWithRequiredArg<$Scalars> @@ -4212,7 +4212,7 @@ export interface InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Sc export interface Bar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`int\` field on the \`Bar\` object. Its type is ScalarStandard. + * Select the \`int\` field on the \`Bar\` object. Its type is \`Int\` (a \`Scalar\`). */ int?: Bar.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4284,7 +4284,7 @@ export interface DateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the \`date1\` field on the \`DateObject1\` object. Its type is ScalarCustom. + * Select the \`date1\` field on the \`DateObject1\` object. Its type is \`Date\` (a \`Scalar\`). */ date1?: DateObject1.date1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4356,7 +4356,7 @@ export interface DateObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the \`date2\` field on the \`DateObject2\` object. Its type is ScalarCustom. + * Select the \`date2\` field on the \`DateObject2\` object. Its type is \`Date\` (a \`Scalar\`). */ date2?: DateObject2.date2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4426,11 +4426,11 @@ export namespace DateObject2 { export interface ErrorOne<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`infoId\` field on the \`ErrorOne\` object. Its type is ScalarStandard. + * Select the \`infoId\` field on the \`ErrorOne\` object. Its type is \`ID\` (a \`Scalar\`). */ infoId?: ErrorOne.infoId$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`message\` field on the \`ErrorOne\` object. Its type is ScalarStandard. + * Select the \`message\` field on the \`ErrorOne\` object. Its type is \`String\` (a \`Scalar\`). */ message?: ErrorOne.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4522,11 +4522,11 @@ export namespace ErrorOne { export interface ErrorTwo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`infoInt\` field on the \`ErrorTwo\` object. Its type is ScalarStandard. + * Select the \`infoInt\` field on the \`ErrorTwo\` object. Its type is \`Int\` (a \`Scalar\`). */ infoInt?: ErrorTwo.infoInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`message\` field on the \`ErrorTwo\` object. Its type is ScalarStandard. + * Select the \`message\` field on the \`ErrorTwo\` object. Its type is \`String\` (a \`Scalar\`). */ message?: ErrorTwo.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4621,7 +4621,7 @@ export namespace ErrorTwo { */ export interface Foo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`id\` field on the \`Foo\` object. Its type is ScalarStandard. + * Select the \`id\` field on the \`Foo\` object. Its type is \`ID\` (a \`Scalar\`). */ id?: Foo.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4695,23 +4695,23 @@ export interface Object1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = */ ABCEnum?: Object1.ABCEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`boolean\` field on the \`Object1\` object. Its type is ScalarStandard. + * Select the \`boolean\` field on the \`Object1\` object. Its type is \`Boolean\` (a \`Scalar\`). */ boolean?: Object1.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`float\` field on the \`Object1\` object. Its type is ScalarStandard. + * Select the \`float\` field on the \`Object1\` object. Its type is \`Float\` (a \`Scalar\`). */ float?: Object1.float$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`id\` field on the \`Object1\` object. Its type is ScalarStandard. + * Select the \`id\` field on the \`Object1\` object. Its type is \`ID\` (a \`Scalar\`). */ id?: Object1.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`int\` field on the \`Object1\` object. Its type is ScalarStandard. + * Select the \`int\` field on the \`Object1\` object. Its type is \`Int\` (a \`Scalar\`). */ int?: Object1.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`string\` field on the \`Object1\` object. Its type is ScalarStandard. + * Select the \`string\` field on the \`Object1\` object. Its type is \`String\` (a \`Scalar\`). */ string?: Object1.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4893,13 +4893,13 @@ export interface Object1ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the \`id\` field on the \`Object1ImplementingInterface\` object. Its type is ScalarStandard. + * Select the \`id\` field on the \`Object1ImplementingInterface\` object. Its type is \`ID\` (a \`Scalar\`). */ id?: | Object1ImplementingInterface.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`int\` field on the \`Object1ImplementingInterface\` object. Its type is ScalarStandard. + * Select the \`int\` field on the \`Object1ImplementingInterface\` object. Its type is \`Int\` (a \`Scalar\`). */ int?: | Object1ImplementingInterface.int$Expanded<$Scalars> @@ -4995,13 +4995,13 @@ export interface Object2ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the \`boolean\` field on the \`Object2ImplementingInterface\` object. Its type is ScalarStandard. + * Select the \`boolean\` field on the \`Object2ImplementingInterface\` object. Its type is \`Boolean\` (a \`Scalar\`). */ boolean?: | Object2ImplementingInterface.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`id\` field on the \`Object2ImplementingInterface\` object. Its type is ScalarStandard. + * Select the \`id\` field on the \`Object2ImplementingInterface\` object. Its type is \`ID\` (a \`Scalar\`). */ id?: | Object2ImplementingInterface.id$Expanded<$Scalars> @@ -5097,7 +5097,7 @@ export interface ObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarM extends $Select.Bases.ObjectLike { /** - * Select the \`id\` field on the \`ObjectNested\` object. Its type is ScalarStandard. + * Select the \`id\` field on the \`ObjectNested\` object. Its type is \`ID\` (a \`Scalar\`). */ id?: ObjectNested.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** @@ -5265,7 +5265,7 @@ export interface lowerCaseObject<$Scalars extends $$Utilities.Schema.Scalar.Scal extends $Select.Bases.ObjectLike { /** - * Select the \`id\` field on the \`lowerCaseObject\` object. Its type is ScalarStandard. + * Select the \`id\` field on the \`lowerCaseObject\` object. Its type is \`ID\` (a \`Scalar\`). */ id?: lowerCaseObject.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -5337,7 +5337,7 @@ export interface lowerCaseObject2<$Scalars extends $$Utilities.Schema.Scalar.Sca extends $Select.Bases.ObjectLike { /** - * Select the \`int\` field on the \`lowerCaseObject2\` object. Its type is ScalarStandard. + * Select the \`int\` field on the \`lowerCaseObject2\` object. Its type is \`Int\` (a \`Scalar\`). */ int?: lowerCaseObject2.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/src/generator/generators/SelectionSets.ts b/src/generator/generators/SelectionSets.ts index 30d5c581..68526b57 100644 --- a/src/generator/generators/SelectionSets.ts +++ b/src/generator/generators/SelectionSets.ts @@ -171,13 +171,9 @@ const renderKindOutputObject = createCodeGenerator<{ type: Grafaid.Schema.Object code() const fieldKeys = fields.map(field => { - const fieldTypeInfo = Grafaid.getTypeAndKind(Grafaid.Schema.getNamedType(field.type)) - const fieldTypeKindOrScalarType = fieldTypeInfo.kindName === Grafaid.Schema.KindMap.Name.ScalarCustom - || fieldTypeInfo.kindName === Grafaid.Schema.KindMap.Name.ScalarStandard - ? `\`${fieldTypeInfo.name}\` (a \`Scalar\`)` - : fieldTypeInfo.kindName + const typeKind = Grafaid.getTypeAndKind(Grafaid.Schema.getNamedType(field.type)) const doc = Code.TSDoc(` - Select the \`${field.name}\` field on the \`${type.name}\` object. Its type is ${fieldTypeKindOrScalarType}. + Select the \`${field.name}\` field on the \`${type.name}\` object. Its type is \`${typeKind.typeName}\` (a \`${typeKind.kindName}\` kind of type). `) const key = H.outputFieldKey( field.name, diff --git a/src/generator/helpers/render.ts b/src/generator/helpers/render.ts index 7f217038..13217279 100644 --- a/src/generator/helpers/render.ts +++ b/src/generator/helpers/render.ts @@ -27,7 +27,7 @@ export const title1 = (title: string, subTitle?: string) => { export const typeTitle2 = (category: string) => (type: Grafaid.Schema.NamedTypes) => { const typeKind = Grafaid.getTypeAndKind(type) const nameOrKind = typeKind.kindName === `ScalarCustom` || typeKind.kindName === `ScalarStandard` - ? typeKind.name + ? typeKind.typeName : typeKind.kindName const typeLabel = nameOrKind const title = ` diff --git a/src/lib/grafaid/graphql.ts b/src/lib/grafaid/graphql.ts index 914fd94e..6a4d2c63 100644 --- a/src/lib/grafaid/graphql.ts +++ b/src/lib/grafaid/graphql.ts @@ -68,10 +68,10 @@ export const isStandardScalarType = (type: GraphQLScalarType) => { export const getTypeAndKind = ( node: GraphQLNamedType, ): { - name: string + typeName: string kindName: KindMap.KindName } => { - const name = node.name + const typeName = node.name let kindName: KindMap.KindName @@ -92,5 +92,5 @@ export const getTypeAndKind = ( } else { throw casesExhausted(node) } - return { name, kindName } + return { typeName, kindName } } diff --git a/tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.ts b/tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.ts index 49ff27ec..da938838 100644 --- a/tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.ts +++ b/tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.ts @@ -56,11 +56,11 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `id` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Mutation.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Mutation.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -152,255 +152,255 @@ export namespace Mutation { export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `InputObjectNested` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `InputObjectNested` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ InputObjectNested?: | Query.InputObjectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `InputObjectNestedNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `InputObjectNestedNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ InputObjectNestedNonNull?: | Query.InputObjectNestedNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `abcEnum` field on the `Query` object. Its type is Enum. + * Select the `abcEnum` field on the `Query` object. Its type is `ABCEnum` (a `Enum` kind of type). */ abcEnum?: Query.abcEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `argInputObjectCircular` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `argInputObjectCircular` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ argInputObjectCircular?: | Query.argInputObjectCircular$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `date` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date?: Query.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArg` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArg` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArg?: Query.dateArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgInputObject` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgInputObject` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgInputObject?: | Query.dateArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgList?: Query.dateArgList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNull?: Query.dateArgNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNullList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNullList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNullList?: | Query.dateArgNonNullList<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNullListNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNullListNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNullListNonNull?: | Query.dateArgNonNullListNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateInterface1` field on the `Query` object. Its type is Interface. + * Select the `dateInterface1` field on the `Query` object. Its type is `DateInterface1` (a `Interface` kind of type). */ dateInterface1?: | Query.dateInterface1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateList?: Query.dateList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateListList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateListList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateListList?: Query.dateListList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateListNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateListNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateListNonNull?: | Query.dateListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateNonNull?: Query.dateNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateObject1` field on the `Query` object. Its type is OutputObject. + * Select the `dateObject1` field on the `Query` object. Its type is `DateObject1` (a `OutputObject` kind of type). */ dateObject1?: Query.dateObject1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateUnion` field on the `Query` object. Its type is Union. + * Select the `dateUnion` field on the `Query` object. Its type is `DateUnion` (a `Union` kind of type). */ dateUnion?: Query.dateUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `error` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `error` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ error?: Query.error$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Query.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Query.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interface` field on the `Query` object. Its type is Interface. + * Select the `interface` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interface?: Query.$interface$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interfaceNonNull` field on the `Query` object. Its type is Interface. + * Select the `interfaceNonNull` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interfaceNonNull?: | Query.interfaceNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interfaceWithArgs` field on the `Query` object. Its type is Interface. + * Select the `interfaceWithArgs` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interfaceWithArgs?: | Query.interfaceWithArgs<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listInt` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listInt` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listInt?: Query.listInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listIntNonNull` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listIntNonNull` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listIntNonNull?: | Query.listIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listListInt` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listListInt` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listListInt?: Query.listListInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listListIntNonNull` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listListIntNonNull` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listListIntNonNull?: | Query.listListIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `lowerCaseUnion` field on the `Query` object. Its type is Union. + * Select the `lowerCaseUnion` field on the `Query` object. Its type is `lowerCaseUnion` (a `Union` kind of type). */ lowerCaseUnion?: | Query.lowerCaseUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `object` field on the `Query` object. Its type is OutputObject. + * Select the `object` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ object?: Query.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectList` field on the `Query` object. Its type is OutputObject. + * Select the `objectList` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectList?: Query.objectList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectListNonNull` field on the `Query` object. Its type is OutputObject. + * Select the `objectListNonNull` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectListNonNull?: | Query.objectListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectNested` field on the `Query` object. Its type is OutputObject. + * Select the `objectNested` field on the `Query` object. Its type is `ObjectNested` (a `OutputObject` kind of type). */ objectNested?: Query.objectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectNonNull` field on the `Query` object. Its type is OutputObject. + * Select the `objectNonNull` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectNonNull?: | Query.objectNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectWithArgs` field on the `Query` object. Its type is OutputObject. + * Select the `objectWithArgs` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectWithArgs?: | Query.objectWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `result` field on the `Query` object. Its type is Union. + * Select the `result` field on the `Query` object. Its type is `Result` (a `Union` kind of type). */ result?: Query.result<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `resultNonNull` field on the `Query` object. Its type is Union. + * Select the `resultNonNull` field on the `Query` object. Its type is `Result` (a `Union` kind of type). */ resultNonNull?: | Query.resultNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `string` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `string` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ string?: Query.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgEnum` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgEnum` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgEnum?: | Query.stringWithArgEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgInputObject` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgInputObject` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgInputObject?: | Query.stringWithArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgInputObjectRequired` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgInputObjectRequired` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgInputObjectRequired?: | Query.stringWithArgInputObjectRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgs` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgs` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgs?: | Query.stringWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithListArg` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithListArg` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithListArg?: | Query.stringWithListArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithListArgRequired` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithListArgRequired` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithListArgRequired?: | Query.stringWithListArgRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithRequiredArg` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithRequiredArg` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithRequiredArg?: | Query.stringWithRequiredArg<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBar` field on the `Query` object. Its type is Union. + * Select the `unionFooBar` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBar?: Query.unionFooBar$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBarNonNull` field on the `Query` object. Its type is Union. + * Select the `unionFooBarNonNull` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBarNonNull?: | Query.unionFooBarNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBarWithArgs` field on the `Query` object. Its type is Union. + * Select the `unionFooBarWithArgs` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBarWithArgs?: | Query.unionFooBarWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionObject` field on the `Query` object. Its type is OutputObject. + * Select the `unionObject` field on the `Query` object. Its type is `ObjectUnion` (a `OutputObject` kind of type). */ unionObject?: Query.unionObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionObjectNonNull` field on the `Query` object. Its type is OutputObject. + * Select the `unionObjectNonNull` field on the `Query` object. Its type is `ObjectUnion` (a `OutputObject` kind of type). */ unionObjectNonNull?: | Query.unionObjectNonNull$Expanded<$Scalars> @@ -1849,7 +1849,7 @@ export interface InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Sc export interface Bar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `int` field on the `Bar` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Bar` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: Bar.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1921,7 +1921,7 @@ export interface DateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `date1` field on the `DateObject1` object. Its type is `Date` (a `Scalar`). + * Select the `date1` field on the `DateObject1` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date1?: DateObject1.date1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1993,7 +1993,7 @@ export interface DateObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `date2` field on the `DateObject2` object. Its type is `Date` (a `Scalar`). + * Select the `date2` field on the `DateObject2` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date2?: DateObject2.date2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2063,11 +2063,11 @@ export namespace DateObject2 { export interface ErrorOne<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `infoId` field on the `ErrorOne` object. Its type is `ID` (a `Scalar`). + * Select the `infoId` field on the `ErrorOne` object. Its type is `ID` (a `ScalarStandard` kind of type). */ infoId?: ErrorOne.infoId$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `message` field on the `ErrorOne` object. Its type is `String` (a `Scalar`). + * Select the `message` field on the `ErrorOne` object. Its type is `String` (a `ScalarStandard` kind of type). */ message?: ErrorOne.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2159,11 +2159,11 @@ export namespace ErrorOne { export interface ErrorTwo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `infoInt` field on the `ErrorTwo` object. Its type is `Int` (a `Scalar`). + * Select the `infoInt` field on the `ErrorTwo` object. Its type is `Int` (a `ScalarStandard` kind of type). */ infoInt?: ErrorTwo.infoInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `message` field on the `ErrorTwo` object. Its type is `String` (a `Scalar`). + * Select the `message` field on the `ErrorTwo` object. Its type is `String` (a `ScalarStandard` kind of type). */ message?: ErrorTwo.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2258,7 +2258,7 @@ export namespace ErrorTwo { */ export interface Foo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Foo` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Foo` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Foo.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2328,27 +2328,27 @@ export namespace Foo { export interface Object1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `ABCEnum` field on the `Object1` object. Its type is Enum. + * Select the `ABCEnum` field on the `Object1` object. Its type is `ABCEnum` (a `Enum` kind of type). */ ABCEnum?: Object1.ABCEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `boolean` field on the `Object1` object. Its type is `Boolean` (a `Scalar`). + * Select the `boolean` field on the `Object1` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ boolean?: Object1.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `float` field on the `Object1` object. Its type is `Float` (a `Scalar`). + * Select the `float` field on the `Object1` object. Its type is `Float` (a `ScalarStandard` kind of type). */ float?: Object1.float$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Object1` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object1` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Object1.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `int` field on the `Object1` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Object1` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: Object1.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `string` field on the `Object1` object. Its type is `String` (a `Scalar`). + * Select the `string` field on the `Object1` object. Its type is `String` (a `ScalarStandard` kind of type). */ string?: Object1.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2530,13 +2530,13 @@ export interface Object1ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Object1ImplementingInterface` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object1ImplementingInterface` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: | Object1ImplementingInterface.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `int` field on the `Object1ImplementingInterface` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Object1ImplementingInterface` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: | Object1ImplementingInterface.int$Expanded<$Scalars> @@ -2632,13 +2632,13 @@ export interface Object2ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the `boolean` field on the `Object2ImplementingInterface` object. Its type is `Boolean` (a `Scalar`). + * Select the `boolean` field on the `Object2ImplementingInterface` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ boolean?: | Object2ImplementingInterface.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Object2ImplementingInterface` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object2ImplementingInterface` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: | Object2ImplementingInterface.id$Expanded<$Scalars> @@ -2734,11 +2734,11 @@ export interface ObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarM extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `ObjectNested` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `ObjectNested` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: ObjectNested.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `object` field on the `ObjectNested` object. Its type is OutputObject. + * Select the `object` field on the `ObjectNested` object. Its type is `Object1` (a `OutputObject` kind of type). */ object?: ObjectNested.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2829,7 +2829,7 @@ export interface ObjectUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `fooBarUnion` field on the `ObjectUnion` object. Its type is Union. + * Select the `fooBarUnion` field on the `ObjectUnion` object. Its type is `FooBarUnion` (a `Union` kind of type). */ fooBarUnion?: | ObjectUnion.fooBarUnion$Expanded<$Scalars> @@ -2902,7 +2902,7 @@ export interface lowerCaseObject<$Scalars extends $$Utilities.Schema.Scalar.Scal extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `lowerCaseObject` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `lowerCaseObject` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: lowerCaseObject.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2974,7 +2974,7 @@ export interface lowerCaseObject2<$Scalars extends $$Utilities.Schema.Scalar.Sca extends $Select.Bases.ObjectLike { /** - * Select the `int` field on the `lowerCaseObject2` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `lowerCaseObject2` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: lowerCaseObject2.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/tests/_/schemas/mutation-only/graffle/modules/SelectionSets.ts b/tests/_/schemas/mutation-only/graffle/modules/SelectionSets.ts index 4cd4e7c8..664b1f06 100644 --- a/tests/_/schemas/mutation-only/graffle/modules/SelectionSets.ts +++ b/tests/_/schemas/mutation-only/graffle/modules/SelectionSets.ts @@ -54,11 +54,11 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `id` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Mutation.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Mutation.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/tests/_/schemas/pokemon/graffle/modules/SelectionSets.ts b/tests/_/schemas/pokemon/graffle/modules/SelectionSets.ts index 270e38e7..6af56c0a 100644 --- a/tests/_/schemas/pokemon/graffle/modules/SelectionSets.ts +++ b/tests/_/schemas/pokemon/graffle/modules/SelectionSets.ts @@ -55,7 +55,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `addPokemon` field on the `Mutation` object. Its type is OutputObject. + * Select the `addPokemon` field on the `Mutation` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ addPokemon?: Mutation.addPokemon<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -135,31 +135,31 @@ export namespace Mutation { export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `battles` field on the `Query` object. Its type is Union. + * Select the `battles` field on the `Query` object. Its type is `Battle` (a `Union` kind of type). */ battles?: Query.battles$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `beings` field on the `Query` object. Its type is Interface. + * Select the `beings` field on the `Query` object. Its type is `Being` (a `Interface` kind of type). */ beings?: Query.beings$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `Query` object. Its type is OutputObject. + * Select the `pokemon` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: Query.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemonByName` field on the `Query` object. Its type is OutputObject. + * Select the `pokemonByName` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemonByName?: Query.pokemonByName<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemons` field on the `Query` object. Its type is OutputObject. + * Select the `pokemons` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemons?: Query.pokemons$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainerByName` field on the `Query` object. Its type is OutputObject. + * Select the `trainerByName` field on the `Query` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainerByName?: Query.trainerByName<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainers` field on the `Query` object. Its type is OutputObject. + * Select the `trainers` field on the `Query` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainers?: Query.trainers$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -455,21 +455,21 @@ export interface BattleRoyale<$Scalars extends $$Utilities.Schema.Scalar.ScalarM extends $Select.Bases.ObjectLike { /** - * Select the `combatants` field on the `BattleRoyale` object. Its type is OutputObject. + * Select the `combatants` field on the `BattleRoyale` object. Its type is `CombatantMultiPokemon` (a `OutputObject` kind of type). */ combatants?: | BattleRoyale.combatants$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `BattleRoyale` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleRoyale` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleRoyale.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleRoyale` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleRoyale` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleRoyale.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `winner` field on the `BattleRoyale` object. Its type is OutputObject. + * Select the `winner` field on the `BattleRoyale` object. Its type is `Trainer` (a `OutputObject` kind of type). */ winner?: BattleRoyale.winner$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -601,27 +601,27 @@ export interface BattleTrainer<$Scalars extends $$Utilities.Schema.Scalar.Scalar extends $Select.Bases.ObjectLike { /** - * Select the `combatant1` field on the `BattleTrainer` object. Its type is OutputObject. + * Select the `combatant1` field on the `BattleTrainer` object. Its type is `CombatantSinglePokemon` (a `OutputObject` kind of type). */ combatant1?: | BattleTrainer.combatant1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `combatant2` field on the `BattleTrainer` object. Its type is OutputObject. + * Select the `combatant2` field on the `BattleTrainer` object. Its type is `CombatantSinglePokemon` (a `OutputObject` kind of type). */ combatant2?: | BattleTrainer.combatant2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `BattleTrainer` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleTrainer` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleTrainer.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleTrainer` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleTrainer` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleTrainer.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `winner` field on the `BattleTrainer` object. Its type is OutputObject. + * Select the `winner` field on the `BattleTrainer` object. Its type is `Trainer` (a `OutputObject` kind of type). */ winner?: BattleTrainer.winner$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -772,27 +772,27 @@ export interface BattleWild<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap extends $Select.Bases.ObjectLike { /** - * Select the `date` field on the `BattleWild` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleWild` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleWild.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleWild` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleWild` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleWild.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `BattleWild` object. Its type is OutputObject. + * Select the `pokemon` field on the `BattleWild` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: BattleWild.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `result` field on the `BattleWild` object. Its type is Enum. + * Select the `result` field on the `BattleWild` object. Its type is `BattleWildResult` (a `Enum` kind of type). */ result?: BattleWild.result$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `BattleWild` object. Its type is OutputObject. + * Select the `trainer` field on the `BattleWild` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: BattleWild.trainer$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `wildPokemons` field on the `BattleWild` object. Its type is OutputObject. + * Select the `wildPokemons` field on the `BattleWild` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ wildPokemons?: | BattleWild.wildPokemons$Expanded<$Scalars> @@ -969,13 +969,13 @@ export interface CombatantMultiPokemon<$Scalars extends $$Utilities.Schema.Scala extends $Select.Bases.ObjectLike { /** - * Select the `pokemons` field on the `CombatantMultiPokemon` object. Its type is OutputObject. + * Select the `pokemons` field on the `CombatantMultiPokemon` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemons?: | CombatantMultiPokemon.pokemons$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `CombatantMultiPokemon` object. Its type is OutputObject. + * Select the `trainer` field on the `CombatantMultiPokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: | CombatantMultiPokemon.trainer$Expanded<$Scalars> @@ -1065,13 +1065,13 @@ export interface CombatantSinglePokemon<$Scalars extends $$Utilities.Schema.Scal extends $Select.Bases.ObjectLike { /** - * Select the `pokemon` field on the `CombatantSinglePokemon` object. Its type is OutputObject. + * Select the `pokemon` field on the `CombatantSinglePokemon` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: | CombatantSinglePokemon.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `CombatantSinglePokemon` object. Its type is OutputObject. + * Select the `trainer` field on the `CombatantSinglePokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: | CombatantSinglePokemon.trainer$Expanded<$Scalars> @@ -1159,15 +1159,15 @@ export namespace CombatantSinglePokemon { export interface Patron<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Patron` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Patron` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Patron.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `money` field on the `Patron` object. Its type is `Int` (a `Scalar`). + * Select the `money` field on the `Patron` object. Its type is `Int` (a `ScalarStandard` kind of type). */ money?: Patron.money$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Patron` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Patron` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Patron.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1281,35 +1281,35 @@ export namespace Patron { export interface Pokemon<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `attack` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `attack` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ attack?: Pokemon.attack$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `birthday` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `birthday` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ birthday?: Pokemon.birthday$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `defense` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `defense` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ defense?: Pokemon.defense$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `hp` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `hp` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ hp?: Pokemon.hp$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Pokemon` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Pokemon` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Pokemon.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Pokemon` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Pokemon` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Pokemon.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `Pokemon` object. Its type is OutputObject. + * Select the `trainer` field on the `Pokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: Pokemon.trainer$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `type` field on the `Pokemon` object. Its type is Enum. + * Select the `type` field on the `Pokemon` object. Its type is `PokemonType` (a `Enum` kind of type). */ type?: Pokemon.type$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1530,23 +1530,23 @@ export namespace Pokemon { export interface Trainer<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `class` field on the `Trainer` object. Its type is Enum. + * Select the `class` field on the `Trainer` object. Its type is `TrainerClass` (a `Enum` kind of type). */ class?: Trainer.$class$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `fans` field on the `Trainer` object. Its type is OutputObject. + * Select the `fans` field on the `Trainer` object. Its type is `Patron` (a `OutputObject` kind of type). */ fans?: Trainer.fans$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Trainer` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Trainer` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Trainer.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Trainer` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Trainer` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Trainer.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `Trainer` object. Its type is OutputObject. + * Select the `pokemon` field on the `Trainer` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: Trainer.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/tests/_/schemas/query-only/graffle/modules/SelectionSets.ts b/tests/_/schemas/query-only/graffle/modules/SelectionSets.ts index 8c8c8b21..4d82b987 100644 --- a/tests/_/schemas/query-only/graffle/modules/SelectionSets.ts +++ b/tests/_/schemas/query-only/graffle/modules/SelectionSets.ts @@ -54,11 +54,11 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `id` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Query.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Query.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/website/graffle/modules/SelectionSets.ts b/website/graffle/modules/SelectionSets.ts index 5914290c..0e9dd9e1 100644 --- a/website/graffle/modules/SelectionSets.ts +++ b/website/graffle/modules/SelectionSets.ts @@ -54,27 +54,27 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `continent` field on the `Query` object. Its type is OutputObject. + * Select the `continent` field on the `Query` object. Its type is `Continent` (a `OutputObject` kind of type). */ continent?: Query.continent<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `continents` field on the `Query` object. Its type is OutputObject. + * Select the `continents` field on the `Query` object. Its type is `Continent` (a `OutputObject` kind of type). */ continents?: Query.continents$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `countries` field on the `Query` object. Its type is OutputObject. + * Select the `countries` field on the `Query` object. Its type is `Country` (a `OutputObject` kind of type). */ countries?: Query.countries$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `country` field on the `Query` object. Its type is OutputObject. + * Select the `country` field on the `Query` object. Its type is `Country` (a `OutputObject` kind of type). */ country?: Query.country<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `language` field on the `Query` object. Its type is OutputObject. + * Select the `language` field on the `Query` object. Its type is `Language` (a `OutputObject` kind of type). */ language?: Query.language<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `languages` field on the `Query` object. Its type is OutputObject. + * Select the `languages` field on the `Query` object. Its type is `Language` (a `OutputObject` kind of type). */ languages?: Query.languages$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -345,15 +345,15 @@ export interface StringQueryOperatorInput<$Scalars extends $$Utilities.Schema.Sc export interface Continent<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `code` field on the `Continent` object. Its type is `ID` (a `Scalar`). + * Select the `code` field on the `Continent` object. Its type is `ID` (a `ScalarStandard` kind of type). */ code?: Continent.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `countries` field on the `Continent` object. Its type is OutputObject. + * Select the `countries` field on the `Continent` object. Its type is `Country` (a `OutputObject` kind of type). */ countries?: Continent.countries$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Continent` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Continent` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Continent.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -464,63 +464,63 @@ export namespace Continent { export interface Country<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `awsRegion` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `awsRegion` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ awsRegion?: Country.awsRegion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `capital` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `capital` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ capital?: Country.capital$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `code` field on the `Country` object. Its type is `ID` (a `Scalar`). + * Select the `code` field on the `Country` object. Its type is `ID` (a `ScalarStandard` kind of type). */ code?: Country.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `continent` field on the `Country` object. Its type is OutputObject. + * Select the `continent` field on the `Country` object. Its type is `Continent` (a `OutputObject` kind of type). */ continent?: Country.continent$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `currencies` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `currencies` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ currencies?: Country.currencies$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `currency` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `currency` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ currency?: Country.currency$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `emoji` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `emoji` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ emoji?: Country.emoji$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `emojiU` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `emojiU` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ emojiU?: Country.emojiU$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `languages` field on the `Country` object. Its type is OutputObject. + * Select the `languages` field on the `Country` object. Its type is `Language` (a `OutputObject` kind of type). */ languages?: Country.languages$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Country.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `native` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `native` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ native?: Country.native$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `phone` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `phone` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ phone?: Country.phone$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `phones` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `phones` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ phones?: Country.phones$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `states` field on the `Country` object. Its type is OutputObject. + * Select the `states` field on the `Country` object. Its type is `State` (a `OutputObject` kind of type). */ states?: Country.states$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `subdivisions` field on the `Country` object. Its type is OutputObject. + * Select the `subdivisions` field on the `Country` object. Its type is `Subdivision` (a `OutputObject` kind of type). */ subdivisions?: | Country.subdivisions$Expanded<$Scalars> @@ -899,19 +899,19 @@ export namespace Country { export interface Language<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `code` field on the `Language` object. Its type is `ID` (a `Scalar`). + * Select the `code` field on the `Language` object. Its type is `ID` (a `ScalarStandard` kind of type). */ code?: Language.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Language` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Language` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Language.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `native` field on the `Language` object. Its type is `String` (a `Scalar`). + * Select the `native` field on the `Language` object. Its type is `String` (a `ScalarStandard` kind of type). */ native?: Language.native$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `rtl` field on the `Language` object. Its type is `Boolean` (a `Scalar`). + * Select the `rtl` field on the `Language` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ rtl?: Language.rtl$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1047,15 +1047,15 @@ export namespace Language { export interface State<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `code` field on the `State` object. Its type is `String` (a `Scalar`). + * Select the `code` field on the `State` object. Its type is `String` (a `ScalarStandard` kind of type). */ code?: State.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `country` field on the `State` object. Its type is OutputObject. + * Select the `country` field on the `State` object. Its type is `Country` (a `OutputObject` kind of type). */ country?: State.country$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `State` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `State` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: State.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1168,15 +1168,15 @@ export interface Subdivision<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `code` field on the `Subdivision` object. Its type is `ID` (a `Scalar`). + * Select the `code` field on the `Subdivision` object. Its type is `ID` (a `ScalarStandard` kind of type). */ code?: Subdivision.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `emoji` field on the `Subdivision` object. Its type is `String` (a `Scalar`). + * Select the `emoji` field on the `Subdivision` object. Its type is `String` (a `ScalarStandard` kind of type). */ emoji?: Subdivision.emoji$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Subdivision` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Subdivision` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Subdivision.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/website/pokemon/modules/SelectionSets.ts b/website/pokemon/modules/SelectionSets.ts index f9ffa8e3..6cd92acc 100644 --- a/website/pokemon/modules/SelectionSets.ts +++ b/website/pokemon/modules/SelectionSets.ts @@ -55,7 +55,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `addPokemon` field on the `Mutation` object. Its type is OutputObject. + * Select the `addPokemon` field on the `Mutation` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ addPokemon?: Mutation.addPokemon<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -135,31 +135,31 @@ export namespace Mutation { export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `battles` field on the `Query` object. Its type is Union. + * Select the `battles` field on the `Query` object. Its type is `Battle` (a `Union` kind of type). */ battles?: Query.battles$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `beings` field on the `Query` object. Its type is Interface. + * Select the `beings` field on the `Query` object. Its type is `Being` (a `Interface` kind of type). */ beings?: Query.beings$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `Query` object. Its type is OutputObject. + * Select the `pokemon` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: Query.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemonByName` field on the `Query` object. Its type is OutputObject. + * Select the `pokemonByName` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemonByName?: Query.pokemonByName<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemons` field on the `Query` object. Its type is OutputObject. + * Select the `pokemons` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemons?: Query.pokemons$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainerByName` field on the `Query` object. Its type is OutputObject. + * Select the `trainerByName` field on the `Query` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainerByName?: Query.trainerByName<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainers` field on the `Query` object. Its type is OutputObject. + * Select the `trainers` field on the `Query` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainers?: Query.trainers$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -455,21 +455,21 @@ export interface BattleRoyale<$Scalars extends $$Utilities.Schema.Scalar.ScalarM extends $Select.Bases.ObjectLike { /** - * Select the `combatants` field on the `BattleRoyale` object. Its type is OutputObject. + * Select the `combatants` field on the `BattleRoyale` object. Its type is `CombatantMultiPokemon` (a `OutputObject` kind of type). */ combatants?: | BattleRoyale.combatants$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `BattleRoyale` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleRoyale` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleRoyale.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleRoyale` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleRoyale` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleRoyale.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `winner` field on the `BattleRoyale` object. Its type is OutputObject. + * Select the `winner` field on the `BattleRoyale` object. Its type is `Trainer` (a `OutputObject` kind of type). */ winner?: BattleRoyale.winner$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -601,27 +601,27 @@ export interface BattleTrainer<$Scalars extends $$Utilities.Schema.Scalar.Scalar extends $Select.Bases.ObjectLike { /** - * Select the `combatant1` field on the `BattleTrainer` object. Its type is OutputObject. + * Select the `combatant1` field on the `BattleTrainer` object. Its type is `CombatantSinglePokemon` (a `OutputObject` kind of type). */ combatant1?: | BattleTrainer.combatant1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `combatant2` field on the `BattleTrainer` object. Its type is OutputObject. + * Select the `combatant2` field on the `BattleTrainer` object. Its type is `CombatantSinglePokemon` (a `OutputObject` kind of type). */ combatant2?: | BattleTrainer.combatant2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `BattleTrainer` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleTrainer` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleTrainer.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleTrainer` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleTrainer` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleTrainer.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `winner` field on the `BattleTrainer` object. Its type is OutputObject. + * Select the `winner` field on the `BattleTrainer` object. Its type is `Trainer` (a `OutputObject` kind of type). */ winner?: BattleTrainer.winner$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -772,27 +772,27 @@ export interface BattleWild<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap extends $Select.Bases.ObjectLike { /** - * Select the `date` field on the `BattleWild` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleWild` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleWild.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleWild` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleWild` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleWild.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `BattleWild` object. Its type is OutputObject. + * Select the `pokemon` field on the `BattleWild` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: BattleWild.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `result` field on the `BattleWild` object. Its type is Enum. + * Select the `result` field on the `BattleWild` object. Its type is `BattleWildResult` (a `Enum` kind of type). */ result?: BattleWild.result$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `BattleWild` object. Its type is OutputObject. + * Select the `trainer` field on the `BattleWild` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: BattleWild.trainer$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `wildPokemons` field on the `BattleWild` object. Its type is OutputObject. + * Select the `wildPokemons` field on the `BattleWild` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ wildPokemons?: | BattleWild.wildPokemons$Expanded<$Scalars> @@ -969,13 +969,13 @@ export interface CombatantMultiPokemon<$Scalars extends $$Utilities.Schema.Scala extends $Select.Bases.ObjectLike { /** - * Select the `pokemons` field on the `CombatantMultiPokemon` object. Its type is OutputObject. + * Select the `pokemons` field on the `CombatantMultiPokemon` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemons?: | CombatantMultiPokemon.pokemons$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `CombatantMultiPokemon` object. Its type is OutputObject. + * Select the `trainer` field on the `CombatantMultiPokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: | CombatantMultiPokemon.trainer$Expanded<$Scalars> @@ -1065,13 +1065,13 @@ export interface CombatantSinglePokemon<$Scalars extends $$Utilities.Schema.Scal extends $Select.Bases.ObjectLike { /** - * Select the `pokemon` field on the `CombatantSinglePokemon` object. Its type is OutputObject. + * Select the `pokemon` field on the `CombatantSinglePokemon` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: | CombatantSinglePokemon.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `CombatantSinglePokemon` object. Its type is OutputObject. + * Select the `trainer` field on the `CombatantSinglePokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: | CombatantSinglePokemon.trainer$Expanded<$Scalars> @@ -1159,15 +1159,15 @@ export namespace CombatantSinglePokemon { export interface Patron<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Patron` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Patron` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Patron.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `money` field on the `Patron` object. Its type is `Int` (a `Scalar`). + * Select the `money` field on the `Patron` object. Its type is `Int` (a `ScalarStandard` kind of type). */ money?: Patron.money$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Patron` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Patron` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Patron.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1281,35 +1281,35 @@ export namespace Patron { export interface Pokemon<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `attack` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `attack` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ attack?: Pokemon.attack$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `birthday` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `birthday` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ birthday?: Pokemon.birthday$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `defense` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `defense` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ defense?: Pokemon.defense$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `hp` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `hp` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ hp?: Pokemon.hp$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Pokemon` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Pokemon` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Pokemon.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Pokemon` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Pokemon` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Pokemon.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `Pokemon` object. Its type is OutputObject. + * Select the `trainer` field on the `Pokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: Pokemon.trainer$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `type` field on the `Pokemon` object. Its type is Enum. + * Select the `type` field on the `Pokemon` object. Its type is `PokemonType` (a `Enum` kind of type). */ type?: Pokemon.type$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1530,23 +1530,23 @@ export namespace Pokemon { export interface Trainer<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `class` field on the `Trainer` object. Its type is Enum. + * Select the `class` field on the `Trainer` object. Its type is `TrainerClass` (a `Enum` kind of type). */ class?: Trainer.$class$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `fans` field on the `Trainer` object. Its type is OutputObject. + * Select the `fans` field on the `Trainer` object. Its type is `Patron` (a `OutputObject` kind of type). */ fans?: Trainer.fans$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Trainer` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Trainer` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Trainer.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Trainer` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Trainer` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Trainer.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `Trainer` object. Its type is OutputObject. + * Select the `pokemon` field on the `Trainer` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: Trainer.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias>