@smartive/graphql-magic 19.4.0 → 19.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,6 +159,44 @@ const modelDefinitions: ModelDefinitions = [
159
159
  name: 'Answer',
160
160
  fields: [],
161
161
  },
162
+ {
163
+ kind: 'union',
164
+ name: 'Bird',
165
+ types: ['Duck', 'Eagle'],
166
+ },
167
+ {
168
+ kind: 'object',
169
+ name: 'Duck',
170
+ fields: [
171
+ {
172
+ name: 'name',
173
+ type: 'String',
174
+ },
175
+ ],
176
+ },
177
+ {
178
+ kind: 'object',
179
+ name: 'Eagle',
180
+ fields: [
181
+ {
182
+ name: 'name',
183
+ type: 'String',
184
+ },
185
+ ],
186
+ },
187
+ {
188
+ kind: 'object',
189
+ name: 'Query',
190
+ fields: [
191
+ {
192
+ kind: 'custom',
193
+ name: 'birds',
194
+ type: 'Bird',
195
+ nonNull: true,
196
+ list: true,
197
+ },
198
+ ],
199
+ },
162
200
  ];
163
201
 
164
202
  export const models = new Models(modelDefinitions);