mirror of
https://github.com/graphql-python/graphene.git
synced 2025-09-21 19:32:33 +03:00
format argument example code
This commit is contained in:
parent
17e57e7373
commit
42bfb37d26
|
@ -18,11 +18,13 @@ class Argument(MountedType):
|
||||||
|
|
||||||
.. code:: python
|
.. code:: python
|
||||||
|
|
||||||
age = graphene.String(
|
from graphene import String, Boolean, Argument
|
||||||
|
|
||||||
|
age = String(
|
||||||
# Boolean implicitly mounted as Argument
|
# Boolean implicitly mounted as Argument
|
||||||
dog_years=graphene.Boolean(description='convert to dog years'),
|
dog_years=Boolean(description="convert to dog years"),
|
||||||
# Boolean explicitly mounted as Argument
|
# Boolean explicitly mounted as Argument
|
||||||
decades=graphene.Argument(graphene.Boolean, default_value=False)
|
decades=Argument(Boolean, default_value=False),
|
||||||
)
|
)
|
||||||
|
|
||||||
args:
|
args:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user