Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/type/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ export const GraphQLStreamDirective = new GraphQLDirective({
'Directs the executor to stream plural fields when the `if` argument is true or undefined.',
locations: [DirectiveLocation.FIELD],
args: {
initialCount: {
default: { value: 0 },
type: new GraphQLNonNull(GraphQLInt),
description: 'Number of items to return immediately',
},
if: {
type: new GraphQLNonNull(GraphQLBoolean),
description: 'Stream when true or undefined.',
Expand All @@ -213,11 +218,6 @@ export const GraphQLStreamDirective = new GraphQLDirective({
type: GraphQLString,
description: 'Unique name',
},
initialCount: {
default: { value: 0 },
type: GraphQLInt,
description: 'Number of items to return immediately',
},
},
});

Expand Down
Loading