8000 Fix comments in defer/stream validation rules · graphql-python/graphql-core@551c6c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 551c6c4

Browse files
committed
Fix comments in defer/stream validation rules
Replicates graphql/graphql-js@d23e5de
1 parent 05c2640 commit 551c6c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/graphql/validation/rules/stream_directive_on_list_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
class StreamDirectiveOnListField(ASTValidationRule):
14-
"""Stream directive on list field
14+
"""Stream directives are used on list fields
1515
1616
A GraphQL document is only valid if stream directives are used on list fields.
1717
"""

tests/validation/test_defer_stream_directive_on_root_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def defer_fragment_spread_on_nested_subscription_field():
170170
"""
171171
subscription {
172172
subscriptionField {
173-
...nestedFragment
173+
...nestedFragment @defer
174174
}
175175
}
176176
fragment nestedFragment on Message {

0 commit comments

Comments
 (0)
0