File tree Expand file tree Collapse file tree
sample/12-graphql-schema-first Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 5050 "supertest" : " 6.1.6" ,
5151 "ts-jest" : " 27.0.7" ,
5252 "ts-loader" : " 9.2.6" ,
53+ "ts-morph" : " ^12.2.0" ,
5354 "ts-node" : " 10.4.0" ,
5455 "tsconfig-paths" : " 3.11.0" ,
5556 "typescript" : " 4.4.2"
Original file line number Diff line number Diff line change 1- /** ------------------------------------------------------
1+
2+ /*
3+ * -------------------------------------------------------
24 * THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
35 * -------------------------------------------------------
46 */
57
68/* tslint:disable */
79/* eslint-disable */
810export class CreateCatInput {
9- name ?: string ;
10- age ?: number ;
11+ name ?: Nullable < string > ;
12+ age ?: Nullable < number > ;
1113}
1214
1315export abstract class IQuery {
14- abstract cats ( ) : Cat [ ] | Promise < Cat [ ] > ;
16+ abstract cats ( ) : Nullable < Nullable < Cat > [ ] > | Promise < Nullable < Nullable < Cat > [ ] > > ;
1517
16- abstract cat ( id : string ) : Cat | Promise < Cat > ;
18+ abstract cat ( id : string ) : Nullable < Cat > | Promise < Nullable < Cat > > ;
1719}
1820
1921export abstract class IMutation {
20- abstract createCat ( createCatInput ?: CreateCatInput ) : Cat | Promise < Cat > ;
22+ abstract createCat ( createCatInput ?: Nullable < CreateCatInput > ) : Nullable < Cat > | Promise < Nullable < Cat > > ;
2123}
2224
2325export abstract class ISubscription {
24- abstract catCreated ( ) : Cat | Promise < Cat > ;
26+ abstract catCreated ( ) : Nullable < Cat > | Promise < Nullable < Cat > > ;
2527}
2628
2729export class Owner {
28- id : number ;
29- name : string ;
30- age ?: number ;
31- cats ?: Cat [ ] ;
30+ id : number ;
31+ name : string ;
32+ age ?: Nullable < number > ;
33+ cats ?: Nullable < Cat [ ] > ;
3234}
3335
3436export class Cat {
35- id ?: number ;
36- name ?: string ;
37- age ?: number ;
38- owner ?: Owner ;
37+ id ?: Nullable < number > ;
38+ name ?: Nullable < string > ;
39+ age ?: Nullable < number > ;
40+ owner ?: Nullable < Owner > ;
3941}
42+
43+ type Nullable < T > = T | null ;
You can’t perform that action at this time.
0 commit comments