We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca9188a commit 0805436Copy full SHA for 0805436
docs/types/objecttypes.rst
@@ -230,4 +230,17 @@ previous example you could do:
230
peter.first_name # prints "Peter"
231
peter.last_name # prints "Griffin"
232
233
+Changing the name
234
+-----------------
235
+
236
+By default the type name in the GraphQL schema will the same as the class name
237
+that defines the ``ObjectType``. This can be changed by setting the ``name``
238
+property on the ``Meta`` class:
239
240
+.. code:: python
241
242
+ class MyGraphQlSong(graphene.ObjectType):
243
+ class Meta:
244
+ name = 'Song'
245
246
.. _Interface: /docs/interfaces/
0 commit comments