mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-18 04:20:36 +03:00
Fix typos in Node docs.
This commit is contained in:
parent
e8fc58afd6
commit
8dff91d4c6
|
@ -75,11 +75,11 @@ 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),
|
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, contet, info)``.
|
we can simply do ``Node.get_node_from_global_id(global_id, context, info)``.
|
||||||
|
|
||||||
In the case we want to restric the instnance retrieval to an specific type, we can do:
|
In the case we want to restrict the instnance retrieval to an specific type, we can do:
|
||||||
``Node.get_node_from_global_id(global_id, contet, info, only_type=Ship)``. This will raise an error
|
``Node.get_node_from_global_id(global_id, context, info, only_type=Ship)``. This will raise an error
|
||||||
if the global_id doesn't correspond to a Ship type.
|
if the ``global_id`` doesn't correspond to a Ship type.
|
||||||
|
|
||||||
|
|
||||||
Node Root field
|
Node Root field
|
||||||
|
|
Loading…
Reference in New Issue
Block a user