@@ -44,7 +44,7 @@ There are some cases where the schema cannot access all of the types that we pla
44
44
For example, when a field returns an ``Interface ``, the schema doesn't know about any of the
45
45
implementations.
46
46
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:
48
48
49
49
50
50
.. code :: python
@@ -63,20 +63,18 @@ By default all field and argument names (that are not
63
63
explicitly set with the ``name `` arg) will be converted from
64
64
``snake_case `` to ``camelCase `` (as the API is usually being consumed by a js/mobile client)
65
65
66
- For example with the ObjectType
66
+ For example with the ObjectType the `` last_name `` field name is converted to `` lastName ``:
67
67
68
68
.. code :: python
69
69
70
70
class Person (graphene .ObjectType ):
71
71
last_name = graphene.String()
72
72
other_name = graphene.String(name = ' _other_Name' )
73
73
74
- the ``last_name `` field name is converted to ``lastName ``.
75
-
76
74
In case you don't want to apply this transformation, provide a ``name `` argument to the field constructor.
77
75
``other_name `` converts to ``_other_Name `` (without further transformations).
78
76
79
- Your query should look like
77
+ Your query should look like:
80
78
81
79
.. code ::
82
80
@@ -86,7 +84,7 @@ Your query should look like
86
84
}
87
85
88
86
89
- To disable this behavior, set the ``auto_camelcase `` to ``False `` upon schema instantiation.
87
+ To disable this behavior, set the ``auto_camelcase `` to ``False `` upon schema instantiation:
90
88
91
89
.. code :: python
92
90
0 commit comments