File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
A ``Node `` is an Interface provided by ``graphene.relay `` that contains
5
5
a single field ``id `` (which is a ``ID! ``). Any object that inherits
6
- from it have to implement a ``get_node `` method for retrieving a
6
+ from it has to implement a ``get_node `` method for retrieving a
7
7
``Node `` by an *id *.
8
8
9
9
@@ -26,8 +26,8 @@ Example usage (taken from the `Starwars Relay example`_):
26
26
return get_ship(id )
27
27
28
28
The ``id `` returned by the ``Ship `` type when you query it will be a
29
- scalar which contains the enough info for the server for knowing it’s
30
- type and it’s id.
29
+ scalar which contains enough info for the server to know its type and
30
+ its id.
31
31
32
32
For example, the instance ``Ship(id=1) `` will return ``U2hpcDox `` as the
33
33
id when you query it (which is the base64 encoding of ``Ship:1 ``), and
@@ -77,7 +77,7 @@ Accessing node types
77
77
If we want to retrieve node instances from a ``global_id `` (scalar that identifies an instance by it's type name and id),
78
78
we can simply do ``Node.get_node_from_global_id(global_id, context, info) ``.
79
79
80
- In the case we want to restrict the instnance retrieval to an specific type, we can do:
80
+ In the case we want to restrict the instance retrieval to a specific type, we can do:
81
81
``Node.get_node_from_global_id(global_id, context, info, only_type=Ship) ``. This will raise an error
82
82
if the ``global_id `` doesn't correspond to a Ship type.
83
83
You can’t perform that action at this time.
0 commit comments