Skip to content

Commit 375d1f4

Browse files
authored
Merge pull request #606 from g--/patch-1
Relay documentation reflects api changes in 2.0
2 parents e19e229 + ec32c25 commit 375d1f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/relay/nodes.rst

Lines changed: 2 additions & 2 deletions
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)