File tree 4 files changed +13
-3
lines changed
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ a query language for APIs created by Facebook.
15
15
The current version 3.0.2 of GraphQL-core is up-to-date
16
16
with GraphQL.js version 14.6.0.
17
17
18
- All parts of the API are covered by an extensive test suite
19
- of currently 1991 unit tests.
18
+ All parts of the API are covered by an extensive test suite of nearly 2000 unit tests.
20
19
21
20
22
21
## Documentation
Original file line number Diff line number Diff line change 328
328
located_error ,
329
329
format_error ,
330
330
print_error ,
331
- INVALID ,
331
+ INVALID , # deprecated in the next minor release
332
332
)
333
333
334
334
# Utilities for operating on GraphQL type schema and parsed sources.
399
399
find_dangerous_changes ,
400
400
)
401
401
402
+ Undefined = INVALID # forward-compatible alias
403
+
402
404
# The GraphQL-core version info.
403
405
__version__ = version
404
406
__version_info__ = version_info
688
690
"BreakingChangeType" ,
689
691
"DangerousChange" ,
690
692
"DangerousChangeType" ,
693
+ "Undefined" ,
691
694
]
Original file line number Diff line number Diff line change @@ -30,4 +30,7 @@ def __ne__(self, other):
30
30
31
31
This singleton object is used to describe invalid or undefined values.
32
32
It corresponds to the ``undefined`` value in GraphQL.js.
33
+
34
+ Note: This will be considered deprecated in the next minor release.
35
+ Please use ``graphql.Undefined`` instead to create forward compatible code.
33
36
"""
Original file line number Diff line number Diff line change @@ -26,3 +26,8 @@ def only_equal_to_itself():
26
26
false_object = False
27
27
assert INVALID != false_object
28
28
assert not INVALID == false_object
29
+
30
+ def forward_compatibility ():
31
+ from graphql import Undefined
32
+
33
+ assert INVALID is Undefined
You can’t perform that action at this time.
0 commit comments