From 4c17b783128920a59c83fac0c358c9a23b90382a Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Thu, 21 Jun 2018 17:26:06 +0100 Subject: [PATCH] Update docs --- docs/types/interfaces.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/types/interfaces.rst b/docs/types/interfaces.rst index 21cf2173..05623dba 100644 --- a/docs/types/interfaces.rst +++ b/docs/types/interfaces.rst @@ -154,7 +154,7 @@ Interfaces you might come across this error: This happens because Graphene doesn't have enough information to convert the data object into a Graphene type needed to resolve the ``Interface``. To solve -this you can define a ``resolve_type`` class method on the ``Interface`` which +this you can define a ``_resolve_type`` class method on the ``Interface`` which maps a data object to a Graphene type: .. code:: python @@ -164,7 +164,7 @@ maps a data object to a Graphene type: name = graphene.String(required=True) @classmethod - def resolve_type(cls, instance, info): + def _resolve_type(cls, instance, info): if instance.type == 'DROID': return Droid return Human