AuthQueries.js
607 Bytes
import { gql } from "apollo-boost";
export const LOGIN = gql`
mutation login($email: String!, $password: String!) {
login(email: $email, password: $password) {
token
user {
id
}
}
}
`;
export const SIGNUP = gql`
mutation createAccount(
$email: String!
$username: String!
$password: String!
$password2: String!
$phoneNum: String!
) {
createAccount(
email: $email
username: $username
password: $password
password2: $password2
phoneNum: $phoneNum
) {
token
user {
id
}
}
}
`;