Skip to content

Commit eb5b277

Browse files
Update snapshots
1 parent b22087d commit eb5b277

File tree

152 files changed

+619
-619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+619
-619
lines changed

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/client_mutation_resolver.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type Query {
3030
==================================== OUTPUT ===================================
3131
//- __generated__/barMutation.graphql.js
3232
/**
33-
* <auto-generated> SignedSource<<7f1de50339842bab9cecc72c6fbc076f>>
33+
* <auto-generated> SignedSource<<c9045b1c950e83cede402f0b4626a7c8>>
3434
* @flow
3535
* @lightSyntaxTransform
3636
* @nogrep
@@ -45,7 +45,7 @@ import type { ClientRequest, Mutation } from 'relay-runtime';
4545
import {foo_mutation as mutationFooMutationResolverType} from "../foo.js";
4646
// Type assertion validating that `mutationFooMutationResolverType` resolver is correctly implemented.
4747
// A type error here indicates that the type signature of the resolver module is incorrect.
48-
(mutationFooMutationResolverType: () => ?boolean);
48+
(mutationFooMutationResolverType: () => boolean | null);
4949
export type barMutation$variables = {||};
5050
export type barMutation$data = {|
5151
+foo_mutation: ?boolean,

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/client_mutation_resolver_different_mutation_ok.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default node;
104104

105105
//- __generated__/barMutation.graphql.js
106106
/**
107-
* <auto-generated> SignedSource<<6f79ca8d7718498c480388c5b22a5130>>
107+
* <auto-generated> SignedSource<<31cc6cb3ca0668ffe6884f2da3893466>>
108108
* @flow
109109
* @lightSyntaxTransform
110110
* @nogrep
@@ -119,7 +119,7 @@ import type { ClientRequest, Mutation } from 'relay-runtime';
119119
import {baz_mutation as notCalledMutationBazMutationResolverType} from "../foo.js";
120120
// Type assertion validating that `notCalledMutationBazMutationResolverType` resolver is correctly implemented.
121121
// A type error here indicates that the type signature of the resolver module is incorrect.
122-
(notCalledMutationBazMutationResolverType: () => ?boolean);
122+
(notCalledMutationBazMutationResolverType: () => boolean | null);
123123
export type barMutation$variables = {||};
124124
export type barMutation$data = {|
125125
+baz_mutation: ?boolean,

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/client_schema_extension_interface_uses_resolver_type.expected

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default ((node/*: any*/)/*: Fragment<
176176

177177
//- __generated__/PersonComponentQuery.graphql.js
178178
/**
179-
* <auto-generated> SignedSource<<6c11d65c79f10f8cbe664d4735a1fb15>>
179+
* <auto-generated> SignedSource<<f9584e3f61d57da807edbde8546b4278>>
180180
* @flow
181181
* @lightSyntaxTransform
182182
* @nogrep
@@ -195,15 +195,15 @@ import {admin as adminAdminResolverType} from "Admin";
195195
// A type error here indicates that the type signature of the resolver module is incorrect.
196196
(adminAdminResolverType: (
197197
__relay_model_instance: Admin____relay_model_instance$data['__relay_model_instance'],
198-
) => ?{|
198+
) => {|
199199
+id: DataID,
200-
|});
200+
|} | null);
201201
import {boss as queryBossResolverType} from "Admin";
202202
// Type assertion validating that `queryBossResolverType` resolver is correctly implemented.
203203
// A type error here indicates that the type signature of the resolver module is incorrect.
204-
(queryBossResolverType: () => ?{|
204+
(queryBossResolverType: () => {|
205205
+id: DataID,
206-
|});
206+
|} | null);
207207
export type PersonComponentQuery$variables = {||};
208208
export type PersonComponentQuery$data = {|
209209
+boss: ?{|

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/custom_scalar_variable_default_arg_non_strict.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extend type Query {
4444
==================================== OUTPUT ===================================
4545
//- __generated__/fooCustomScalarLiteralArgQuery.graphql.js
4646
/**
47-
* <auto-generated> SignedSource<<3aa552e7fbe1065708942cd7012d713e>>
47+
* <auto-generated> SignedSource<<1637ce7cbd0ba6ee3c528ef86ee61d09>>
4848
* @flow
4949
* @lightSyntaxTransform
5050
* @nogrep
@@ -57,8 +57,8 @@ extend type Query {
5757
/*::
5858
import type { ClientRequest, ClientQuery } from 'relay-runtime';
5959
export type fooCustomScalarLiteralArgQuery$variables = {|
60-
arg?: ?any,
61-
arg_server?: ?any,
60+
arg?: any | null,
61+
arg_server?: any | null,
6262
|};
6363
export type fooCustomScalarLiteralArgQuery$data = {|
6464
+extension_field: ?{|

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/error_handling_fragment.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type User { name: String }
1717
==================================== OUTPUT ===================================
1818
//- __generated__/foo.graphql.js
1919
/**
20-
* <auto-generated> SignedSource<<aa8a9fd716975ca122b77708a6fca791>>
20+
* <auto-generated> SignedSource<<70a7a244e5796d4e6e9f2fbcd76c50f0>>
2121
* @flow
2222
* @lightSyntaxTransform
2323
* @nogrep
@@ -32,7 +32,7 @@ import type { Fragment, ReaderFragment } from 'relay-runtime';
3232
import type { FragmentType } from "relay-runtime";
3333
declare export opaque type foo$fragmentType: FragmentType;
3434
export type foo$data = {|
35-
+name: ?string,
35+
+name: string | null,
3636
+$fragmentType: foo$fragmentType,
3737
|};
3838
export type foo$key = {

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/error_handling_query.expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type User { name: String }
1919
==================================== OUTPUT ===================================
2020
//- __generated__/fooQuery.graphql.js
2121
/**
22-
* <auto-generated> SignedSource<<9b5cf0134e02913bc0d65df99f7ff0c3>>
22+
* <auto-generated> SignedSource<<2850659094fb71d3762177cc38cd028d>>
2323
* @flow
2424
* @lightSyntaxTransform
2525
* @nogrep
@@ -33,9 +33,9 @@ type User { name: String }
3333
import type { ConcreteRequest, Query } from 'relay-runtime';
3434
export type fooQuery$variables = {||};
3535
export type fooQuery$data = {|
36-
+me: ?{|
37-
+name: ?string,
38-
|},
36+
+me: {|
37+
+name: string | null,
38+
|} | null,
3939
|};
4040
export type fooQuery = {|
4141
response: fooQuery$data,

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/exec_resolvers_directive_with_root_fragment.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default node;
116116

117117
//- __generated__/UserFooFragment.graphql.js
118118
/**
119-
* <auto-generated> SignedSource<<843aee583dbf963998562b8559b43846>>
119+
* <auto-generated> SignedSource<<c6276bdf3c443a503812bf90a2089b08>>
120120
* @flow
121121
* @lightSyntaxTransform
122122
* @nogrep
@@ -132,7 +132,7 @@ import type { FragmentType } from "relay-runtime";
132132
import {bar as userBarResolverType} from "User_bar";
133133
// Type assertion validating that `userBarResolverType` resolver is correctly implemented.
134134
// A type error here indicates that the type signature of the resolver module is incorrect.
135-
(userBarResolverType: () => ?mixed);
135+
(userBarResolverType: () => mixed | null);
136136
declare export opaque type UserFooFragment$fragmentType: FragmentType;
137137
export type UserFooFragment$data = {|
138138
+bar: ?ReturnType<typeof userBarResolverType>,

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/multiple_resolvers_on_interface_of_all_strong_model_type.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default ((node/*: any*/)/*: Fragment<
183183

184184
//- __generated__/PersonComponentQuery.graphql.js
185185
/**
186-
* <auto-generated> SignedSource<<e0022cdfb92fda66bd256d91ed716cdc>>
186+
* <auto-generated> SignedSource<<63481a634199f0ea7757f9e303b9a3c8>>
187187
* @flow
188188
* @lightSyntaxTransform
189189
* @nogrep
@@ -202,13 +202,13 @@ import {description as iActorDescriptionResolverType} from "IActorResolvers";
202202
// A type error here indicates that the type signature of the resolver module is incorrect.
203203
(iActorDescriptionResolverType: (
204204
model: Admin____relay_model_instance$data['__relay_model_instance'] | User____relay_model_instance$data['__relay_model_instance'],
205-
) => ?string);
205+
) => string | null);
206206
import {name as iPersonNameResolverType} from "IPersonResolvers";
207207
// Type assertion validating that `iPersonNameResolverType` resolver is correctly implemented.
208208
// A type error here indicates that the type signature of the resolver module is incorrect.
209209
(iPersonNameResolverType: (
210210
model: Admin____relay_model_instance$data['__relay_model_instance'] | User____relay_model_instance$data['__relay_model_instance'],
211-
) => ?string);
211+
) => string | null);
212212
export type PersonComponentQuery$variables = {||};
213213
export type PersonComponentQuery$data = {|
214214
+actor: ?{|

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/prefetchable_refetchable_pagination.expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type Page {
6161
==================================== OUTPUT ===================================
6262
//- __generated__/RefetchableFragmentQuery.graphql.js
6363
/**
64-
* <auto-generated> SignedSource<<f564f1dfa61d152d3e7b6df1d206d243>>
64+
* <auto-generated> SignedSource<<609d2c8a7985b58c3ee779c39d147a80>>
6565
* @flow
6666
* @lightSyntaxTransform
6767
* @nogrep
@@ -76,8 +76,8 @@ import type { ConcreteRequest, Query } from 'relay-runtime';
7676
import type { FragmentType } from "relay-runtime";
7777
import type { foo$fragmentType } from "foo.graphql";
7878
export type RefetchableFragmentQuery$variables = {|
79-
count?: ?number,
80-
cursor?: ?string,
79+
count?: number | null,
80+
cursor?: string | null,
8181
|};
8282
export type RefetchableFragmentQuery$data = {|
8383
+viewer: ?{|
@@ -427,7 +427,7 @@ export default ((node/*: any*/)/*: PrefetchableRefetchableFragment<
427427

428428
//- __generated__/fooQuery.graphql.js
429429
/**
430-
* <auto-generated> SignedSource<<0692b813f39e023e6ae14977764bd0af>>
430+
* <auto-generated> SignedSource<<4505ac4727019dd25452a16cd29ac487>>
431431
* @flow
432432
* @lightSyntaxTransform
433433
* @nogrep
@@ -441,8 +441,8 @@ export default ((node/*: any*/)/*: PrefetchableRefetchableFragment<
441441
import type { ConcreteRequest, Query } from 'relay-runtime';
442442
import type { foo$fragmentType } from "foo.graphql";
443443
export type fooQuery$variables = {|
444-
count?: ?number,
445-
cursor?: ?string,
444+
count?: number | null,
445+
cursor?: string | null,
446446
|};
447447
export type fooQuery$data = {|
448448
+me: ?{|

compiler/crates/relay-compiler/tests/relay_compiler_integration/fixtures/relay_resolvers_in_throw_on_field_error.expected

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default ((node/*: any*/)/*: Fragment<
164164

165165
//- __generated__/fooQuery.graphql.js
166166
/**
167-
* <auto-generated> SignedSource<<3313eddbfdd22f715c9f61877c3934fc>>
167+
* <auto-generated> SignedSource<<31bc07f2b00ed403e2ce86668617d4b8>>
168168
* @flow
169169
* @lightSyntaxTransform
170170
* @nogrep
@@ -180,14 +180,14 @@ import type { DataID } from "relay-runtime";
180180
import {clientUser as queryClientUserResolverType} from "foo";
181181
// Type assertion validating that `queryClientUserResolverType` resolver is correctly implemented.
182182
// A type error here indicates that the type signature of the resolver module is incorrect.
183-
(queryClientUserResolverType: () => ?{|
183+
(queryClientUserResolverType: () => {|
184184
+id: DataID,
185-
|});
185+
|} | null);
186186
export type fooQuery$variables = {||};
187187
export type fooQuery$data = {|
188-
+clientUser: ?{|
188+
+clientUser: {|
189189
+id: string,
190-
|},
190+
|} | null,
191191
|};
192192
export type fooQuery = {|
193193
response: fooQuery$data,

0 commit comments

Comments
 (0)