Side effects:
- Creates a new
Session
in the database and generates atoken
for it. - Any further request provider the
Authorization: Bearer {token}
header will be authenticated.
Arguments:
email: String!
password: String!
Fields:
token: String!
user: User!
Side effects:
- Deletes the
Session
identified by thetoken
. - Any further request providing this token will NOT be authenticated.
Arguments:
email: String!
name: String!
password: String!
Fields:
user: User!
Arguments:
id: ID!
email: String
name: String
password: String
Fields:
user: User!
Arguments:
id: ID!
Fields:
user: User!
Arguments:
text: String!
parent_id: ID
Fields:
post: Post!
Arguments:
id: ID!
Fields:
post: Post!
Arguments:
postId: ID!
emotion: Emotion!
Fields:
reaction: Reaction!
Arguments:
postId: ID!
Fields:
post: Post!