Skip to content

Commit b828aeb

Browse files
committed
update test fixtures
1 parent 7b5414c commit b828aeb

File tree

80 files changed

+138
-138
lines changed

Some content is hidden

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

80 files changed

+138
-138
lines changed

compiler/crates/relay-codegen/tests/defer_stream/fixtures/fragment-with-stream-default-label.expected

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ query QueryWithFragmentWithStream($id: ID!) {
88

99
fragment FeedbackFragment on Feedback {
1010
id
11-
actors @stream(initial_count: 1) {
11+
actors @stream(initialCount: 1) {
1212
name
1313
}
1414
}

compiler/crates/relay-codegen/tests/defer_stream/fixtures/fragment-with-stream-default-label.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ query QueryWithFragmentWithStream($id: ID!) {
77

88
fragment FeedbackFragment on Feedback {
99
id
10-
actors @stream(initial_count: 1) {
10+
actors @stream(initialCount: 1) {
1111
name
1212
}
1313
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/fragment-with-defer-in-stream.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ query fragmentWithDeferInStream_QueryWithFragmentWithStreamQuery($id: ID!) {
88

99
fragment fragmentWithDeferInStream_FeedbackFragment on Feedback {
1010
id
11-
actors @stream(initial_count: 1, label: "StreamedActorsLabel") {
11+
actors @stream(initialCount: 1, label: "StreamedActorsLabel") {
1212
...fragmentWithDeferInStream_ActorFragment @defer
1313
}
1414
}
@@ -193,7 +193,7 @@ fragment fragmentWithDeferInStream_ActorFragment on Actor {
193193

194194
fragment fragmentWithDeferInStream_FeedbackFragment on Feedback {
195195
id
196-
actors @stream(label: "fragmentWithDeferInStream_FeedbackFragment$stream$StreamedActorsLabel", initial_count: 1) {
196+
actors @stream(label: "fragmentWithDeferInStream_FeedbackFragment$stream$StreamedActorsLabel", initialCount: 1) {
197197
__typename
198198
...fragmentWithDeferInStream_ActorFragment @defer(label: "fragmentWithDeferInStream_FeedbackFragment$defer$fragmentWithDeferInStream_ActorFragment")
199199
id

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/fragment-with-defer-in-stream.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ query fragmentWithDeferInStream_QueryWithFragmentWithStreamQuery($id: ID!) {
77

88
fragment fragmentWithDeferInStream_FeedbackFragment on Feedback {
99
id
10-
actors @stream(initial_count: 1, label: "StreamedActorsLabel") {
10+
actors @stream(initialCount: 1, label: "StreamedActorsLabel") {
1111
...fragmentWithDeferInStream_ActorFragment @defer
1212
}
1313
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/fragment-with-stream.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ query fragmentWithStream_QueryWithFragmentWithStreamQuery($id: ID!) {
88

99
fragment fragmentWithStream_FeedbackFragment on Feedback {
1010
id
11-
actors @stream(initial_count: 1, label: "StreamedActorsLabel") {
11+
actors @stream(initialCount: 1, label: "StreamedActorsLabel") {
1212
name
1313
}
1414
}
@@ -173,7 +173,7 @@ query fragmentWithStream_QueryWithFragmentWithStreamQuery(
173173

174174
fragment fragmentWithStream_FeedbackFragment on Feedback {
175175
id
176-
actors @stream(label: "fragmentWithStream_FeedbackFragment$stream$StreamedActorsLabel", initial_count: 1) {
176+
actors @stream(label: "fragmentWithStream_FeedbackFragment$stream$StreamedActorsLabel", initialCount: 1) {
177177
__typename
178178
name
179179
id

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/fragment-with-stream.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ query fragmentWithStream_QueryWithFragmentWithStreamQuery($id: ID!) {
77

88
fragment fragmentWithStream_FeedbackFragment on Feedback {
99
id
10-
actors @stream(initial_count: 1, label: "StreamedActorsLabel") {
10+
actors @stream(initialCount: 1, label: "StreamedActorsLabel") {
1111
name
1212
}
1313
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/refetchable-fragment-with-connection-with-stream.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fragment refetchableFragmentWithConnectionWithStream_PaginationFragment on Node
99
... on User {
1010
name
1111
friends(after: $cursor, first: $count)
12-
@stream_connection(key: "PaginationFragment_friends", initial_count: 1) {
12+
@stream_connection(key: "PaginationFragment_friends", initialCount: 1) {
1313
edges {
1414
node {
1515
id
@@ -305,7 +305,7 @@ fragment refetchableFragmentWithConnectionWithStream_PaginationFragment_1G22uz o
305305
... on User {
306306
name
307307
friends(after: $cursor, first: $count) {
308-
edges @stream(label: "refetchableFragmentWithConnectionWithStream_PaginationFragment$stream$PaginationFragment_friends", initial_count: 1) {
308+
edges @stream(label: "refetchableFragmentWithConnectionWithStream_PaginationFragment$stream$PaginationFragment_friends", initialCount: 1) {
309309
node {
310310
id
311311
__typename

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/refetchable-fragment-with-connection-with-stream.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fragment refetchableFragmentWithConnectionWithStream_PaginationFragment on Node
88
... on User {
99
name
1010
friends(after: $cursor, first: $count)
11-
@stream_connection(key: "PaginationFragment_friends", initial_count: 1) {
11+
@stream_connection(key: "PaginationFragment_friends", initialCount: 1) {
1212
edges {
1313
node {
1414
id

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_inconsistent_stream_usage_1.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ query selectionSetConflictInconsistentStreamUsage1Query {
55
... on User {
66
friends {
77
... on FriendsConnection {
8-
edges @stream(label: "hdijf", initial_count: 1) {
8+
edges @stream(label: "hdijf", initialCount: 1) {
99
node {
1010
name
1111
}
@@ -25,7 +25,7 @@ query selectionSetConflictInconsistentStreamUsage1Query {
2525

2626
selection_set_conflict_inconsistent_stream_usage_1.graphql:7:11
2727
6 │ ... on FriendsConnection {
28-
7 │ edges @stream(label: "hdijf", initial_count: 1) {
28+
7 │ edges @stream(label: "hdijf", initialCount: 1) {
2929
│ ^^^^^
3030
8 │ node {
3131

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_inconsistent_stream_usage_1.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ query selectionSetConflictInconsistentStreamUsage1Query {
44
... on User {
55
friends {
66
... on FriendsConnection {
7-
edges @stream(label: "hdijf", initial_count: 1) {
7+
edges @stream(label: "hdijf", initialCount: 1) {
88
node {
99
name
1010
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_inconsistent_stream_usage_2.expected

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ query selectionSetConflictInconsistentStreamUsage2Query {
55
... on User {
66
friends {
77
... on FriendsConnection {
8-
edges @stream(label: "hdijf", initial_count: 1) {
8+
edges @stream(label: "hdijf", initialCount: 1) {
99
node {
1010
name
1111
}
1212
}
1313
}
14-
edges @stream(label: "hkjdf", initial_count: 2) {
14+
edges @stream(label: "hkjdf", initialCount: 2) {
1515
node {
1616
id
1717
}
@@ -25,14 +25,14 @@ query selectionSetConflictInconsistentStreamUsage2Query {
2525

2626
selection_set_conflict_inconsistent_stream_usage_2.graphql:7:11
2727
6 │ ... on FriendsConnection {
28-
7 │ edges @stream(label: "hdijf", initial_count: 1) {
28+
7 │ edges @stream(label: "hdijf", initialCount: 1) {
2929
│ ^^^^^
3030
8 │ node {
3131

3232
ℹ︎ the other field
3333

3434
selection_set_conflict_inconsistent_stream_usage_2.graphql:13:9
3535
12 │ }
36-
13 │ edges @stream(label: "hkjdf", initial_count: 2) {
36+
13 │ edges @stream(label: "hkjdf", initialCount: 2) {
3737
│ ^^^^^
3838
14 │ node {

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_inconsistent_stream_usage_2.graphql

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ query selectionSetConflictInconsistentStreamUsage2Query {
44
... on User {
55
friends {
66
... on FriendsConnection {
7-
edges @stream(label: "hdijf", initial_count: 1) {
7+
edges @stream(label: "hdijf", initialCount: 1) {
88
node {
99
name
1010
}
1111
}
1212
}
13-
edges @stream(label: "hkjdf", initial_count: 2) {
13+
edges @stream(label: "hkjdf", initialCount: 2) {
1414
node {
1515
id
1616
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_stream_on_nodes_or_edges.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ query selectionSetConflictStreamOnNodesOrEdgesQuery {
33
me {
44
... on User {
55
friends {
6-
edges @stream(label: "b", initial_count: 1) {
6+
edges @stream(label: "b", initialCount: 1) {
77
node {
88
id
99
}
@@ -167,7 +167,7 @@ QUERY:
167167
query selectionSetConflictStreamOnNodesOrEdgesQuery {
168168
me {
169169
friends {
170-
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesQuery$stream$b", initial_count: 1) {
170+
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesQuery$stream$b", initialCount: 1) {
171171
node {
172172
id
173173
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_stream_on_nodes_or_edges.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ query selectionSetConflictStreamOnNodesOrEdgesQuery {
22
me {
33
... on User {
44
friends {
5-
edges @stream(label: "b", initial_count: 1) {
5+
edges @stream(label: "b", initialCount: 1) {
66
node {
77
id
88
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_stream_on_nodes_or_edges_without_defer_on_page_info.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery {
99
hasNextPage
1010
}
1111
}
12-
edges @stream(label: "b", initial_count: 1) {
12+
edges @stream(label: "b", initialCount: 1) {
1313
node {
1414
id
1515
}
@@ -212,7 +212,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery {
212212
pageInfo {
213213
hasNextPage
214214
}
215-
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery$stream$b", initial_count: 1) {
215+
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery$stream$b", initialCount: 1) {
216216
node {
217217
id
218218
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_stream_on_nodes_or_edges_without_defer_on_page_info.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery {
88
hasNextPage
99
}
1010
}
11-
edges @stream(label: "b", initial_count: 1) {
11+
edges @stream(label: "b", initialCount: 1) {
1212
node {
1313
id
1414
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_stream_on_nodes_or_edges_without_defer_on_page_info_and_page_info_alias.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoA
99
hasNextPage
1010
}
1111
}
12-
edges @stream(label: "b", initial_count: 1) {
12+
edges @stream(label: "b", initialCount: 1) {
1313
node {
1414
id
1515
}
@@ -212,7 +212,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoA
212212
pagination: pageInfo {
213213
hasNextPage
214214
}
215-
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoAliasQuery$stream$b", initial_count: 1) {
215+
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoAliasQuery$stream$b", initialCount: 1) {
216216
node {
217217
id
218218
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_stream_on_nodes_or_edges_without_defer_on_page_info_and_page_info_alias.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoA
88
hasNextPage
99
}
1010
}
11-
edges @stream(label: "b", initial_count: 1) {
11+
edges @stream(label: "b", initialCount: 1) {
1212
node {
1313
id
1414
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_valid_stream.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ query selectionSetConflictValidStreamQuery {
33
me {
44
... on User {
55
friends {
6-
edges @stream(label: "jkdhg", initial_count: 0) {
6+
edges @stream(label: "jkdhg", initialCount: 0) {
77
node {
88
id
99
}
@@ -167,7 +167,7 @@ QUERY:
167167
query selectionSetConflictValidStreamQuery {
168168
me {
169169
friends {
170-
edges @stream(label: "selectionSetConflictValidStreamQuery$stream$jkdhg", initial_count: 0) {
170+
edges @stream(label: "selectionSetConflictValidStreamQuery$stream$jkdhg", initialCount: 0) {
171171
node {
172172
id
173173
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/selection_set_conflict_valid_stream.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ query selectionSetConflictValidStreamQuery {
22
me {
33
... on User {
44
friends {
5-
edges @stream(label: "jkdhg", initial_count: 0) {
5+
edges @stream(label: "jkdhg", initialCount: 0) {
66
node {
77
id
88
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/stream-and-handle.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ query streamAndHandleQuery {
77

88
fragment streamAndHandleFragment on Feedback {
99
actors
10-
@stream(label: "actors", if: true, initial_count: 0)
10+
@stream(label: "actors", if: true, initialCount: 0)
1111
@__clientField(handle: "actors_handler") {
1212
name @__clientField(handle: "name_handler")
1313
}
@@ -169,7 +169,7 @@ query streamAndHandleQuery {
169169
}
170170

171171
fragment streamAndHandleFragment on Feedback {
172-
actors @stream(label: "streamAndHandleFragment$stream$actors", if: true, initial_count: 0) {
172+
actors @stream(label: "streamAndHandleFragment$stream$actors", if: true, initialCount: 0) {
173173
__typename
174174
name
175175
id

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/stream-and-handle.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ query streamAndHandleQuery {
66

77
fragment streamAndHandleFragment on Feedback {
88
actors
9-
@stream(label: "actors", if: true, initial_count: 0)
9+
@stream(label: "actors", if: true, initialCount: 0)
1010
@__clientField(handle: "actors_handler") {
1111
name @__clientField(handle: "name_handler")
1212
}

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/stream-connection-conditional.expected

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ query streamConnectionConditionalQuery($id: ID!, $cond: Boolean!) {
55
... on Story {
66
comments(first: 10)
77
@stream_connection(
8-
use_customized_batch: $cond
8+
useCustomizedBatch: $cond
99
if: $cond
10-
initial_count: 0
10+
initialCount: 0
1111
key: "NodeQuery_comments"
1212
) {
1313
edges {
@@ -359,7 +359,7 @@ query streamConnectionConditionalQuery(
359359
id
360360
... on Story {
361361
comments(first: 10) {
362-
edges @stream(label: "streamConnectionConditionalQuery$stream$NodeQuery_comments", if: $cond, initial_count: 0, use_customized_batch: $cond) {
362+
edges @stream(label: "streamConnectionConditionalQuery$stream$NodeQuery_comments", if: $cond, initialCount: 0, useCustomizedBatch: $cond) {
363363
node {
364364
__typename
365365
id

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/stream-connection-conditional.graphql

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ query streamConnectionConditionalQuery($id: ID!, $cond: Boolean!) {
44
... on Story {
55
comments(first: 10)
66
@stream_connection(
7-
use_customized_batch: $cond
7+
useCustomizedBatch: $cond
88
if: $cond
9-
initial_count: 0
9+
initialCount: 0
1010
key: "NodeQuery_comments"
1111
) {
1212
edges {

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/stream-connection.expected

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ query streamConnection_NodeQuery($id: ID!) {
44
id
55
... on Story {
66
comments(first: 10)
7-
@stream_connection(key: "NodeQuery_comments", initial_count: 0) {
7+
@stream_connection(key: "NodeQuery_comments", initialCount: 0) {
88
edges {
99
node {
1010
actor {
@@ -399,7 +399,7 @@ query streamConnection_NodeQuery(
399399
id
400400
... on Story {
401401
comments(first: 10) {
402-
edges @stream(label: "streamConnection_NodeQuery$stream$NodeQuery_comments", initial_count: 0) {
402+
edges @stream(label: "streamConnection_NodeQuery$stream$NodeQuery_comments", initialCount: 0) {
403403
node {
404404
actor {
405405
__typename

compiler/crates/relay-compiler/tests/compile_relay_artifacts/fixtures/stream-connection.graphql

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ query streamConnection_NodeQuery($id: ID!) {
33
id
44
... on Story {
55
comments(first: 10)
6-
@stream_connection(key: "NodeQuery_comments", initial_count: 0) {
6+
@stream_connection(key: "NodeQuery_comments", initialCount: 0) {
77
edges {
88
node {
99
actor {

0 commit comments

Comments
 (0)