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 b27189b commit a34e85f
Show file tree
Hide file tree
Showing 63 changed files with 124 additions and 114 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -19,27 +19,27 @@ fragment streamIfArgumentsFragment on User
setToFalse: { type: "Boolean", defaultValue: false }
) {
withDefaultTrue: tasks
@stream(initial_count: 1, if: $defaultsToTrue, label: "defaultTrue") {
@stream(initialCount: 1, if: $defaultsToTrue, label: "defaultTrue") {
__typename
}
withDefaultFalse: tasks
@stream(initial_count: 1, if: $defaultsToFalse, label: "defaultFalse") {
@stream(initialCount: 1, if: $defaultsToFalse, label: "defaultFalse") {
__typename
}
setToTrue: tasks
@stream(initial_count: 1, if: $setToTrue, label: "setToTrue") {
@stream(initialCount: 1, if: $setToTrue, label: "setToTrue") {
__typename
}
setToFalse: tasks
@stream(initial_count: 1, if: $setToFalse, label: "setToFalse") {
@stream(initialCount: 1, if: $setToFalse, label: "setToFalse") {
__typename
}
withValueFromQueryDirectly: tasks
@stream(initial_count: 1, if: $valueFromQuery, label: "fromQueryDirectly") {
@stream(initialCount: 1, if: $valueFromQuery, label: "fromQueryDirectly") {
__typename
}
withValueFromQueryViaArgDef: tasks
@stream(initial_count: 1, if: $setToValue, label: "fromQueryViaArg") {
@stream(initialCount: 1, if: $setToValue, label: "fromQueryViaArg") {
__typename
}
}
Expand Down Expand Up @@ -283,22 +283,22 @@ query streamIfArgumentsQuery(
}

fragment streamIfArgumentsFragment_39RTKZ on User {
withDefaultTrue: tasks @stream(label: "streamIfArgumentsFragment$stream$defaultTrue", if: true, initial_count: 1) {
withDefaultTrue: tasks @stream(label: "streamIfArgumentsFragment$stream$defaultTrue", if: true, initialCount: 1) {
__typename
}
withDefaultFalse: tasks {
__typename
}
setToTrue: tasks @stream(label: "streamIfArgumentsFragment$stream$setToTrue", if: true, initial_count: 1) {
setToTrue: tasks @stream(label: "streamIfArgumentsFragment$stream$setToTrue", if: true, initialCount: 1) {
__typename
}
setToFalse: tasks {
__typename
}
withValueFromQueryDirectly: tasks @stream(label: "streamIfArgumentsFragment$stream$fromQueryDirectly", if: $valueFromQuery, initial_count: 1) {
withValueFromQueryDirectly: tasks @stream(label: "streamIfArgumentsFragment$stream$fromQueryDirectly", if: $valueFromQuery, initialCount: 1) {
__typename
}
withValueFromQueryViaArgDef: tasks @stream(label: "streamIfArgumentsFragment$stream$fromQueryViaArg", if: $valueFromQuery, initial_count: 1) {
withValueFromQueryViaArgDef: tasks @stream(label: "streamIfArgumentsFragment$stream$fromQueryViaArg", if: $valueFromQuery, initialCount: 1) {
__typename
}
}
Expand Down
Loading

0 comments on commit a34e85f

Please sign in to comment.