Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc50aa9a

Browse files
committed
more test data
1 parente68e55e commitc50aa9a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

‎tests/resources/documents.graphql‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ query testUnion {
3333
union {
3434
...onTomato {
3535
id
36+
color
3637
}
3738
...onPotato {
3839
id
40+
origin
3941
}
4042
}
4143
}

‎tests/resources/output.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,11 @@ export const testUnion = query<testUnion_variables, testUnion_data>(gql`
154154
union {
155155
... on Tomato {
156156
id
157+
color
157158
}
158159
... on Potato {
159160
id
161+
origin
160162
}
161163
}
162164
}
@@ -170,14 +172,18 @@ export type testUnion_data_union =
170172
|testUnion_data_union_Potato
171173
exporttypetestUnion_data_union_Tomato={
172174
id?:Nullable<testUnion_data_union_Tomato_id>
175+
color?:Nullable<testUnion_data_union_Tomato_color>
173176
}
174177

175178
exporttypetestUnion_data_union_Tomato_id=string
179+
exporttypetestUnion_data_union_Tomato_color=string
176180
exporttypetestUnion_data_union_Potato={
177181
id?:Nullable<testUnion_data_union_Potato_id>
182+
origin?:Nullable<testUnion_data_union_Potato_origin>
178183
}
179184

180185
exporttypetestUnion_data_union_Potato_id=string
186+
exporttypetestUnion_data_union_Potato_origin=string
181187

182188
exportconsttestMethods=query<testMethods_variables,testMethods_data>(gql`
183189
query testMethods(

‎tests/resources/schema.graphql‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ type NestedObjectType {
7272

7373
typeTomato {
7474
id:ID
75+
color:String
7576
}
7677

7778
typePotato {
7879
id:ID
80+
origin:String
7981
}
8082

8183
unionUnionType =Tomato |Potato

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp