MCPcopy Create free account
hub / github.com/graphql-python/graphene-django / get_node

Method get_node

graphene_django/tests/test_query.py:202–205  ·  view source on GitHub ↗
(cls, info, id)

Source from the content-addressed store, hash-verified

200
201 @classmethod
202 def get_node(cls, info, id):
203 return Article(
204 id=1, headline="Article node", pub_date=datetime.date(2002, 3, 11)
205 )
206
207 class Query(graphene.ObjectType):
208 node = Node.Field()

Callers

nothing calls this directly

Calls 1

ArticleClass · 0.70

Tested by

no test coverage detected