Skip to content

Commit ec32c25

Browse files
authored
Relay documentation reflects api changes in 2.0
Specifically, get_node_from_global_id.
1 parent e71a521 commit ec32c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/relay/nodes.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ Accessing node types
7575
--------------------
7676

7777
If we want to retrieve node instances from a ``global_id`` (scalar that identifies an instance by it's type name and id),
78-
we can simply do ``Node.get_node_from_global_id(global_id, context, info)``.
78+
we can simply do ``Node.get_node_from_global_id(info, global_id)``.
7979

8080
In the case we want to restrict the instance retrieval to a specific type, we can do:
81-
``Node.get_node_from_global_id(global_id, context, info, only_type=Ship)``. This will raise an error
81+
``Node.get_node_from_global_id(info, global_id, only_type=Ship)``. This will raise an error
8282
if the ``global_id`` doesn't correspond to a Ship type.
8383

8484

0 commit comments

Comments
 (0)