Users¶
Queries¶
allUsers() => <User> [ ]
Get all users from db, only admin users.
userById( id:
Get user from db by id.
me() => <User>
Get my user info from db. It uses the session token to extract id and query the db.
Mutations¶
signup( email: <String>, password:
Create a user record in the db.
login( email: <String>, password:
Login.
logout() =>
Logout.
setAdmin( id:
Set user role to admin.
Last update:
2022-05-23