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

Method mutate

hackernews/backend-python/users/schema.py:20–28  ·  view source on GitHub ↗
(self, info, username, password, email)

Source from the content-addressed store, hash-verified

18 email = graphene.String(required=True)
19
20 def mutate(self, info, username, password, email):
21 user = get_user_model()(
22 username=username,
23 email=email,
24 )
25 user.set_password(password)
26 user.save()
27
28 return CreateUser(user=user)
29
30
31class Mutation(graphene.ObjectType):

Callers

nothing calls this directly

Calls 1

CreateUserClass · 0.85

Tested by

no test coverage detected