Skip to content

Commit db9d9a0

Browse files
Update schema.rst
1 parent 3ed8273 commit db9d9a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/types/schema.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ There are some cases where the schema cannot access all of the types that we pla
4444
For example, when a field returns an ``Interface``, the schema doesn't know about any of the
4545
implementations.
4646

47-
In this case, we need to use the ``types`` argument when creating the Schema.
47+
In this case, we need to use the ``types`` argument when creating the Schema:
4848

4949

5050
.. code:: python
@@ -63,20 +63,20 @@ By default all field and argument names (that are not
6363
explicitly set with the ``name`` arg) will be converted from
6464
``snake_case`` to ``camelCase`` (as the API is usually being consumed by a js/mobile client)
6565

66-
For example with the ObjectType
66+
For example with the ObjectType the ``last_name`` field name is converted to ``lastName``:
6767

6868
.. code:: python
6969
7070
class Person(graphene.ObjectType):
7171
last_name = graphene.String()
7272
other_name = graphene.String(name='_other_Name')
7373
74-
the ``last_name`` field name is converted to ``lastName``.
74+
7575
7676
In case you don't want to apply this transformation, provide a ``name`` argument to the field constructor.
7777
``other_name`` converts to ``_other_Name`` (without further transformations).
7878

79-
Your query should look like
79+
Your query should look like:
8080

8181
.. code::
8282
@@ -86,7 +86,7 @@ Your query should look like
8686
}
8787
8888
89-
To disable this behavior, set the ``auto_camelcase`` to ``False`` upon schema instantiation.
89+
To disable this behavior, set the ``auto_camelcase`` to ``False`` upon schema instantiation:
9090

9191
.. code:: python
9292

0 commit comments

Comments
 (0)