Skip to content

Users

Queries

allUsers() => <User> [ ]

Get all users from db, only admin users.

userById( id: ) => <User>

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: ) => <AuthPayload>

Create a user record in the db.

login( email: <String>, password: ) => <AuthPayload>

Login.

logout() =>

Logout.

setAdmin( id: ) => <User>

Set user role to admin.


Last update: 2022-05-23