Skip to content

Commit

Permalink
Minor grammatical fix in the schema docs (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi committed Jul 27, 2020
1 parent 64af437 commit 2130005
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/types/schema.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Schema
======

A GraphQL **Schema** defines the types and relationship between **Fields** in your API.
A GraphQL **Schema** defines the types and relationships between **Fields** in your API.

A Schema is created by supplying the root :ref:`ObjectType` of each operation, query (mandatory), mutation and subscription.

Schema will collect all type definitions related to the root operations and then supplied to the validator and executor.
Schema will collect all type definitions related to the root operations and then supply them to the validator and executor.

.. code:: python
Expand All @@ -15,11 +15,11 @@ Schema will collect all type definitions related to the root operations and then
subscription=MyRootSubscription
)
A Root Query is just a special :ref:`ObjectType` that :ref:`defines the fields <Scalars>` that are the entrypoint for your API. Root Mutation and Root Subscription are similar to Root Query, but for different operation types:
A Root Query is just a special :ref:`ObjectType` that :ref:` defines the fields <Scalars>` that are the entrypoint for your API. Root Mutation and Root Subscription are similar to Root Query, but for different operation types:

* Query fetches data
* Mutation changes data and retrieves the changes
* Subscription sends changes to clients in real time
* Subscription sends changes to clients in real-time

Review the `GraphQL documentation on Schema`_ for a brief overview of fields, schema and operations.

Expand Down

0 comments on commit 2130005

Please sign in to comment.