@@ -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,20 @@ 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 ``.
74
+
75
75
76
76
In case you don't want to apply this transformation, provide a ``name `` argument to the field constructor.
77
77
``other_name `` converts to ``_other_Name `` (without further transformations).
78
78
79
- Your query should look like
79
+ Your query should look like:
80
80
81
81
.. code ::
82
82
@@ -86,7 +86,7 @@ Your query should look like
86
86
}
87
87
88
88
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:
90
90
91
91
.. code :: python
92
92
0 commit comments