From ec32c252e7fdb7354e42ac931a7a7ee412d4d56c Mon Sep 17 00:00:00 2001 From: Geoff Date: Mon, 20 Nov 2017 10:05:28 -0500 Subject: [PATCH] Relay documentation reflects api changes in 2.0 Specifically, get_node_from_global_id. --- docs/relay/nodes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/relay/nodes.rst b/docs/relay/nodes.rst index 74f42094..5d0ea35a 100644 --- a/docs/relay/nodes.rst +++ b/docs/relay/nodes.rst @@ -75,10 +75,10 @@ Accessing node types -------------------- If we want to retrieve node instances from a ``global_id`` (scalar that identifies an instance by it's type name and id), -we can simply do ``Node.get_node_from_global_id(global_id, context, info)``. +we can simply do ``Node.get_node_from_global_id(info, global_id)``. In the case we want to restrict the instance retrieval to a specific type, we can do: -``Node.get_node_from_global_id(global_id, context, info, only_type=Ship)``. This will raise an error +``Node.get_node_from_global_id(info, global_id, only_type=Ship)``. This will raise an error if the ``global_id`` doesn't correspond to a Ship type.