mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 12:44:15 +03:00
Merge pull request #606 from g--/patch-1
Relay documentation reflects api changes in 2.0
This commit is contained in:
commit
375d1f494b
|
@ -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.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user