Skip to content

Commit

Permalink
Update DeferStreamInterface defaults to use camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
robrichard committed Oct 9, 2023
1 parent 0d64066 commit 6fffd63
Show file tree
Hide file tree
Showing 84 changed files with 155 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ query QueryWithFragmentWithStream($id: ID!) {

fragment FeedbackFragment on Feedback {
id
actors @stream(initial_count: 1) {
actors @stream(initialCount: 1) {
name
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ query QueryWithFragmentWithStream($id: ID!) {

fragment FeedbackFragment on Feedback {
id
actors @stream(initial_count: 1) {
actors @stream(initialCount: 1) {
name
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ query fragmentWithDeferInStream_QueryWithFragmentWithStreamQuery($id: ID!) {

fragment fragmentWithDeferInStream_FeedbackFragment on Feedback {
id
actors @stream(initial_count: 1, label: "StreamedActorsLabel") {
actors @stream(initialCount: 1, label: "StreamedActorsLabel") {
...fragmentWithDeferInStream_ActorFragment @defer
}
}
Expand Down Expand Up @@ -194,7 +194,7 @@ fragment fragmentWithDeferInStream_ActorFragment on Actor {

fragment fragmentWithDeferInStream_FeedbackFragment on Feedback {
id
actors @stream(label: "fragmentWithDeferInStream_FeedbackFragment$stream$StreamedActorsLabel", initial_count: 1) {
actors @stream(label: "fragmentWithDeferInStream_FeedbackFragment$stream$StreamedActorsLabel", initialCount: 1) {
__typename
...fragmentWithDeferInStream_ActorFragment @defer(label: "fragmentWithDeferInStream_FeedbackFragment$defer$fragmentWithDeferInStream_ActorFragment")
id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ query fragmentWithDeferInStream_QueryWithFragmentWithStreamQuery($id: ID!) {

fragment fragmentWithDeferInStream_FeedbackFragment on Feedback {
id
actors @stream(initial_count: 1, label: "StreamedActorsLabel") {
actors @stream(initialCount: 1, label: "StreamedActorsLabel") {
...fragmentWithDeferInStream_ActorFragment @defer
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ query fragmentWithStream_QueryWithFragmentWithStreamQuery($id: ID!) {

fragment fragmentWithStream_FeedbackFragment on Feedback {
id
actors @stream(initial_count: 1, label: "StreamedActorsLabel") {
actors @stream(initialCount: 1, label: "StreamedActorsLabel") {
name
}
}
Expand Down Expand Up @@ -174,7 +174,7 @@ query fragmentWithStream_QueryWithFragmentWithStreamQuery(

fragment fragmentWithStream_FeedbackFragment on Feedback {
id
actors @stream(label: "fragmentWithStream_FeedbackFragment$stream$StreamedActorsLabel", initial_count: 1) {
actors @stream(label: "fragmentWithStream_FeedbackFragment$stream$StreamedActorsLabel", initialCount: 1) {
__typename
name
id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ query fragmentWithStream_QueryWithFragmentWithStreamQuery($id: ID!) {

fragment fragmentWithStream_FeedbackFragment on Feedback {
id
actors @stream(initial_count: 1, label: "StreamedActorsLabel") {
actors @stream(initialCount: 1, label: "StreamedActorsLabel") {
name
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fragment refetchableFragmentWithConnectionWithStream_PaginationFragment on Node
... on User {
name
friends(after: $cursor, first: $count)
@stream_connection(key: "PaginationFragment_friends", initial_count: 1) {
@stream_connection(key: "PaginationFragment_friends", initialCount: 1) {
edges {
node {
id
Expand Down Expand Up @@ -306,7 +306,7 @@ fragment refetchableFragmentWithConnectionWithStream_PaginationFragment_1G22uz o
... on User {
name
friends(after: $cursor, first: $count) {
edges @stream(label: "refetchableFragmentWithConnectionWithStream_PaginationFragment$stream$PaginationFragment_friends", initial_count: 1) {
edges @stream(label: "refetchableFragmentWithConnectionWithStream_PaginationFragment$stream$PaginationFragment_friends", initialCount: 1) {
node {
id
__typename
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fragment refetchableFragmentWithConnectionWithStream_PaginationFragment on Node
... on User {
name
friends(after: $cursor, first: $count)
@stream_connection(key: "PaginationFragment_friends", initial_count: 1) {
@stream_connection(key: "PaginationFragment_friends", initialCount: 1) {
edges {
node {
id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ query selectionSetConflictInconsistentStreamUsage1Query {
... on User {
friends {
... on FriendsConnection {
edges @stream(label: "hdijf", initial_count: 1) {
edges @stream(label: "hdijf", initialCount: 1) {
node {
name
}
Expand All @@ -25,7 +25,7 @@ query selectionSetConflictInconsistentStreamUsage1Query {

selection_set_conflict_inconsistent_stream_usage_1.graphql:7:11
6 │ ... on FriendsConnection {
7 │ edges @stream(label: "hdijf", initial_count: 1) {
7 │ edges @stream(label: "hdijf", initialCount: 1) {
│ ^^^^^
8 │ node {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ query selectionSetConflictInconsistentStreamUsage1Query {
... on User {
friends {
... on FriendsConnection {
edges @stream(label: "hdijf", initial_count: 1) {
edges @stream(label: "hdijf", initialCount: 1) {
node {
name
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ query selectionSetConflictInconsistentStreamUsage2Query {
... on User {
friends {
... on FriendsConnection {
edges @stream(label: "hdijf", initial_count: 1) {
edges @stream(label: "hdijf", initialCount: 1) {
node {
name
}
}
}
edges @stream(label: "hkjdf", initial_count: 2) {
edges @stream(label: "hkjdf", initialCount: 2) {
node {
id
}
Expand All @@ -25,14 +25,14 @@ query selectionSetConflictInconsistentStreamUsage2Query {

selection_set_conflict_inconsistent_stream_usage_2.graphql:7:11
6 │ ... on FriendsConnection {
7 │ edges @stream(label: "hdijf", initial_count: 1) {
7 │ edges @stream(label: "hdijf", initialCount: 1) {
│ ^^^^^
8 │ node {

ℹ︎ the other field

selection_set_conflict_inconsistent_stream_usage_2.graphql:13:9
12 │ }
13 │ edges @stream(label: "hkjdf", initial_count: 2) {
13 │ edges @stream(label: "hkjdf", initialCount: 2) {
│ ^^^^^
14 │ node {
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ query selectionSetConflictInconsistentStreamUsage2Query {
... on User {
friends {
... on FriendsConnection {
edges @stream(label: "hdijf", initial_count: 1) {
edges @stream(label: "hdijf", initialCount: 1) {
node {
name
}
}
}
edges @stream(label: "hkjdf", initial_count: 2) {
edges @stream(label: "hkjdf", initialCount: 2) {
node {
id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ query selectionSetConflictStreamOnNodesOrEdgesQuery {
me {
... on User {
friends {
edges @stream(label: "b", initial_count: 1) {
edges @stream(label: "b", initialCount: 1) {
node {
id
}
Expand Down Expand Up @@ -168,7 +168,7 @@ QUERY:
query selectionSetConflictStreamOnNodesOrEdgesQuery {
me {
friends {
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesQuery$stream$b", initial_count: 1) {
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesQuery$stream$b", initialCount: 1) {
node {
id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ query selectionSetConflictStreamOnNodesOrEdgesQuery {
me {
... on User {
friends {
edges @stream(label: "b", initial_count: 1) {
edges @stream(label: "b", initialCount: 1) {
node {
id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery {
hasNextPage
}
}
edges @stream(label: "b", initial_count: 1) {
edges @stream(label: "b", initialCount: 1) {
node {
id
}
Expand Down Expand Up @@ -213,7 +213,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery {
pageInfo {
hasNextPage
}
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery$stream$b", initial_count: 1) {
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery$stream$b", initialCount: 1) {
node {
id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoQuery {
hasNextPage
}
}
edges @stream(label: "b", initial_count: 1) {
edges @stream(label: "b", initialCount: 1) {
node {
id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoA
hasNextPage
}
}
edges @stream(label: "b", initial_count: 1) {
edges @stream(label: "b", initialCount: 1) {
node {
id
}
Expand Down Expand Up @@ -213,7 +213,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoA
pagination: pageInfo {
hasNextPage
}
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoAliasQuery$stream$b", initial_count: 1) {
edges @stream(label: "selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoAliasQuery$stream$b", initialCount: 1) {
node {
id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ query selectionSetConflictStreamOnNodesOrEdgesWithoutDeferOnPageInfoAndPageInfoA
hasNextPage
}
}
edges @stream(label: "b", initial_count: 1) {
edges @stream(label: "b", initialCount: 1) {
node {
id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ query selectionSetConflictValidStreamQuery {
me {
... on User {
friends {
edges @stream(label: "jkdhg", initial_count: 0) {
edges @stream(label: "jkdhg", initialCount: 0) {
node {
id
}
Expand Down Expand Up @@ -168,7 +168,7 @@ QUERY:
query selectionSetConflictValidStreamQuery {
me {
friends {
edges @stream(label: "selectionSetConflictValidStreamQuery$stream$jkdhg", initial_count: 0) {
edges @stream(label: "selectionSetConflictValidStreamQuery$stream$jkdhg", initialCount: 0) {
node {
id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ query selectionSetConflictValidStreamQuery {
me {
... on User {
friends {
edges @stream(label: "jkdhg", initial_count: 0) {
edges @stream(label: "jkdhg", initialCount: 0) {
node {
id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ query streamAndHandleQuery {

fragment streamAndHandleFragment on Feedback {
actors
@stream(label: "actors", if: true, initial_count: 0)
@stream(label: "actors", if: true, initialCount: 0)
@__clientField(handle: "actors_handler") {
name @__clientField(handle: "name_handler")
}
Expand Down Expand Up @@ -170,7 +170,7 @@ query streamAndHandleQuery {
}

fragment streamAndHandleFragment on Feedback {
actors @stream(label: "streamAndHandleFragment$stream$actors", if: true, initial_count: 0) {
actors @stream(label: "streamAndHandleFragment$stream$actors", if: true, initialCount: 0) {
__typename
name
id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ query streamAndHandleQuery {

fragment streamAndHandleFragment on Feedback {
actors
@stream(label: "actors", if: true, initial_count: 0)
@stream(label: "actors", if: true, initialCount: 0)
@__clientField(handle: "actors_handler") {
name @__clientField(handle: "name_handler")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ query streamConnectionConditionalQuery($id: ID!, $cond: Boolean!) {
... on Story {
comments(first: 10)
@stream_connection(
use_customized_batch: $cond
useCustomizedBatch: $cond
if: $cond
initial_count: 0
initialCount: 0
key: "NodeQuery_comments"
) {
edges {
Expand Down Expand Up @@ -360,7 +360,7 @@ query streamConnectionConditionalQuery(
id
... on Story {
comments(first: 10) {
edges @stream(label: "streamConnectionConditionalQuery$stream$NodeQuery_comments", if: $cond, initial_count: 0, use_customized_batch: $cond) {
edges @stream(label: "streamConnectionConditionalQuery$stream$NodeQuery_comments", if: $cond, initialCount: 0, useCustomizedBatch: $cond) {
node {
__typename
id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ query streamConnectionConditionalQuery($id: ID!, $cond: Boolean!) {
... on Story {
comments(first: 10)
@stream_connection(
use_customized_batch: $cond
useCustomizedBatch: $cond
if: $cond
initial_count: 0
initialCount: 0
key: "NodeQuery_comments"
) {
edges {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ query streamConnection_NodeQuery($id: ID!) {
id
... on Story {
comments(first: 10)
@stream_connection(key: "NodeQuery_comments", initial_count: 0) {
@stream_connection(key: "NodeQuery_comments", initialCount: 0) {
edges {
node {
actor {
Expand Down Expand Up @@ -400,7 +400,7 @@ query streamConnection_NodeQuery(
id
... on Story {
comments(first: 10) {
edges @stream(label: "streamConnection_NodeQuery$stream$NodeQuery_comments", initial_count: 0) {
edges @stream(label: "streamConnection_NodeQuery$stream$NodeQuery_comments", initialCount: 0) {
node {
actor {
__typename
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ query streamConnection_NodeQuery($id: ID!) {
id
... on Story {
comments(first: 10)
@stream_connection(key: "NodeQuery_comments", initial_count: 0) {
@stream_connection(key: "NodeQuery_comments", initialCount: 0) {
edges {
node {
actor {
Expand Down
Loading

0 comments on commit 6fffd63

Please sign in to comment.