Skip to content

Commit 4667063

Browse files
committed
Make documentation for get_field_def more accurate
Replicates graphql/graphql-js@fb042fc
1 parent d32fd8f commit 4667063

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/graphql/execution/execute.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,11 +1082,11 @@ def get_field_def(
10821082
"""Get field definition.
10831083
10841084
This method looks up the field on the given type definition. It has special casing
1085-
for the two introspection fields, ``__schema`` and ``__typename``. ``__typename`` is
1086-
special because it can always be queried as a field, even in situations where no
1087-
other fields are allowed, like on a Union. ``__schema`` could get automatically
1088-
added to the query type, but that would require mutating type definitions, which
1089-
would cause issues.
1085+
for the three introspection fields, ``__schema``, ``__type`, and ``__typename``.
1086+
``__typename`` is special because it can always be queried as a field, even in
1087+
situations where no other fields are allowed, like on a Union. ``__schema`` and
1088+
``__type`` could get automatically added to the query type, but that would require
1089+
mutating type definitions, which would cause issues.
10901090
10911091
For internal use only.
10921092
"""

0 commit comments

Comments
 (0)