Skip to content

Commit

Permalink
docs: update docstring for type arg of Field (#1527)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewswait authored Oct 6, 2023
1 parent baaef0d commit 5fb7b54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphene/types/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class Person(ObjectType):
args:
type (class for a graphene.UnmountedType): Must be a class (not an instance) of an
unmounted graphene type (ex. scalar or object) which is used for the type of this
field in the GraphQL schema.
field in the GraphQL schema. You can provide a dotted module import path (string)
to the class instead of the class itself (e.g. to avoid circular import issues).
args (optional, Dict[str, graphene.Argument]): Arguments that can be input to the field.
Prefer to use ``**extra_args``, unless you use an argument name that clashes with one
of the Field arguments presented here (see :ref:`example<ResolverParamGraphQLArguments>`).
Expand Down

0 comments on commit 5fb7b54

Please sign in to comment.