AuthQueries.js 489 Bytes
import { gql } from "apollo-boost";

export const LOGIN = gql`
  mutation login($email: String!, $password: String!) {
    login(email: $email, password: $password)
  }
`;

export const SIGNUP = gql`
  mutation signUp(
    $email: String!
    $username: String!
    $password: String!
    $password2: String!
    $phoneNum: String!
  ) {
    signUp(
      email: $email
      username: $username
      password: $password
      password2: $password2
      phoneNum: $phoneNum
    )
  }
`;