File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ export const aB = (overrides?: Partial<B>): B => {
18
18
bool: overrides && overrides .hasOwnProperty (' bool' ) ? overrides .bool ! : false ,
19
19
};
20
20
} ;
21
+
22
+ export const aC = (overrides?: Partial<C >): C => {
23
+ return {
24
+ anyObject: overrides && overrides .hasOwnProperty (' anyObject' ) ? overrides .anyObject ! : ' [email protected] ' ,
25
+ };
26
+ } ;
21
27
"
22
28
`;
23
29
@@ -39,6 +45,12 @@ export const aB = (overrides?: Partial<B>): B => {
39
45
bool: overrides && overrides .hasOwnProperty (' bool' ) ? overrides .bool ! : false ,
40
46
};
41
47
} ;
48
+
49
+ export const aC = (overrides?: Partial<C >): C => {
50
+ return {
51
+ anyObject: overrides && overrides .hasOwnProperty (' anyObject' ) ? overrides .anyObject ! : ' [email protected] ' ,
52
+ };
53
+ } ;
42
54
"
43
55
`;
44
56
@@ -64,6 +76,12 @@ export const aB = (overrides?: Partial<B>): B => {
64
76
};
65
77
} ;
66
78
79
+ export const aC = (overrides?: Partial<C >): C => {
80
+ return {
81
+ anyObject: overrides && overrides .hasOwnProperty (' anyObject' ) ? overrides .anyObject ! : casual [' email' ],
82
+ };
83
+ } ;
84
+
67
85
export const seedMocks = (seed: number) => casual.seed(seed);
68
86
"
69
87
`;
@@ -90,6 +108,12 @@ export const aB = (overrides?: Partial<B>): B => {
90
108
};
91
109
} ;
92
110
111
+ export const aC = (overrides?: Partial<C >): C => {
112
+ return {
113
+ anyObject: overrides && overrides .hasOwnProperty (' anyObject' ) ? overrides .anyObject ! : faker [' internet' ][' email' ](),
114
+ };
115
+ } ;
116
+
93
117
export const seedMocks = (seed: number) => faker.seed(seed);
94
118
"
95
119
`;
Original file line number Diff line number Diff line change @@ -15,4 +15,8 @@ export default buildSchema(/* GraphQL */ `
15
15
flt: Float!
16
16
bool: Boolean!
17
17
}
18
+
19
+ input C {
20
+ anyObject: AnyObject!
21
+ }
18
22
` ) ;
You can’t perform that action at this time.
0 commit comments