Skip to content

Commit

Permalink
Merge 5acd04a into f622f1f
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrmiller committed Apr 13, 2021
2 parents f622f1f + 5acd04a commit edab8d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/types/interfaces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Both of these types have all of the fields from the ``Character`` interface,
but also bring in extra fields, ``home_planet``, ``starships`` and
``primary_function``, that are specific to that particular type of character.

The full GraphQL schema defition will look like this:
The full GraphQL schema definition will look like this:

.. code::
Expand Down
10 changes: 5 additions & 5 deletions docs/types/mutations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ We should receive:
InputFields and InputObjectTypes
----------------------------------
InputFields are used in mutations to allow nested input data for mutations
InputFields are used in mutations to allow nested input data for mutations.

To use an InputField you define an InputObjectType that specifies the structure of your input data
To use an InputField you define an InputObjectType that specifies the structure of your input data:


.. code:: python
Expand All @@ -112,7 +112,7 @@ To use an InputField you define an InputObjectType that specifies the structure
return CreatePerson(person=person)
Note that **name** and **age** are part of **person_data** now
Note that **name** and **age** are part of **person_data** now.

Using the above mutation your new query would look like this:

Expand All @@ -128,7 +128,7 @@ Using the above mutation your new query would look like this:
}
InputObjectTypes can also be fields of InputObjectTypes allowing you to have
as complex of input data as you need
as complex of input data as you need:

.. code:: python
Expand Down Expand Up @@ -160,7 +160,7 @@ To return an existing ObjectType instead of a mutation-specific type, set the **
def mutate(root, info, name):
return Person(name=name)
Then, if we query (``schema.execute(query_str)``) the following:
Then, if we query (``schema.execute(query_str)``) with the following:

.. code::
Expand Down
2 changes: 1 addition & 1 deletion docs/types/unions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to specify any common fields between the types.
The basics:

- Each Union is a Python class that inherits from ``graphene.Union``.
- Unions don't have any fields on it, just links to the possible objecttypes.
- Unions don't have any fields on it, just links to the possible ObjectTypes.

Quick example
-------------
Expand Down

0 comments on commit edab8d4

Please sign in to comment.