Query to get all users in the system.
A Promise that resolves to an array of User objects, or a string indicating an error.
Mutation for user login.
The input data containing the user's email and password.
The context object that contains cookies for session management.
A Promise that resolves to a LogInResponse object containing a message and cookie status.
Mutation for logging out the user by clearing the authentication token cookie.
The context object that contains cookies for session management.
A string message confirming successful logout.
Mutation for user registration.
The input data containing the user's email, password, firstname, lastname, and role.
A Promise that resolves to the newly created User object.
AuthResolver handles all authentication-related GraphQL mutations and queries.