MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / resolve_me

Method resolve_me

hackernews/backend-python/users/schema.py:42–47  ·  view source on GitHub ↗
(self, info)

Source from the content-addressed store, hash-verified

40 return get_user_model().objects.all()
41
42 def resolve_me(self, info):
43 user = info.context.user
44 if user.is_anonymous:
45 raise Exception('Not logged in!')
46
47 return user

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected