Skip to content

Commit 5fb7b54

Browse files
authored
docs: update docstring for type arg of Field (#1527)
1 parent baaef0d commit 5fb7b54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphene/types/field.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class Person(ObjectType):
4343
args:
4444
type (class for a graphene.UnmountedType): Must be a class (not an instance) of an
4545
unmounted graphene type (ex. scalar or object) which is used for the type of this
46-
field in the GraphQL schema.
46+
field in the GraphQL schema. You can provide a dotted module import path (string)
47+
to the class instead of the class itself (e.g. to avoid circular import issues).
4748
args (optional, Dict[str, graphene.Argument]): Arguments that can be input to the field.
4849
Prefer to use ``**extra_args``, unless you use an argument name that clashes with one
4950
of the Field arguments presented here (see :ref:`example<ResolverParamGraphQLArguments>`).

0 commit comments

Comments
 (0)