mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 12:44:15 +03:00
docs: update docstring for type
arg of Field
(#1527)
This commit is contained in:
parent
baaef0d21a
commit
5fb7b54377
|
@ -43,7 +43,8 @@ class Field(MountedType):
|
||||||
args:
|
args:
|
||||||
type (class for a graphene.UnmountedType): Must be a class (not an instance) of an
|
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
|
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.
|
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
|
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>`).
|
of the Field arguments presented here (see :ref:`example<ResolverParamGraphQLArguments>`).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user