mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 03:23:55 +03:00
fixed a few documentation bugs
there was a warning of header underline not being long enough and code type graphql was being used intead of json
This commit is contained in:
parent
1232ff3ee1
commit
b9d3abee31
|
@ -78,7 +78,7 @@ We should receive:
|
||||||
}
|
}
|
||||||
|
|
||||||
InputFields and InputObjectTypes
|
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
|
||||||
|
@ -114,7 +114,7 @@ Note that **name** and **age** are part of **person_data** now
|
||||||
|
|
||||||
Using the above mutation your new query would look like this:
|
Using the above mutation your new query would look like this:
|
||||||
|
|
||||||
.. code:: graphql
|
.. code:: json
|
||||||
|
|
||||||
mutation myFirstMutation {
|
mutation myFirstMutation {
|
||||||
createPerson(personData: {name:"Peter", age: 24}) {
|
createPerson(personData: {name:"Peter", age: 24}) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user