Guest User

Untitled

a guest
Jul 5th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. {
  2. "data": null,
  3. "errors": [
  4. {
  5. "message": "Your token is invalid. It might have expired or you might be using a token from a different project.",
  6. "locations": [],
  7. "path": [
  8. "user"
  9. ],
  10. "code": 3015,
  11. "requestId": "local:api:cjj94kifg00if0936d4p2ywqx"
  12. }
  13. ]
  14. }
  15.  
  16. # import User from './generated/prisma.graphql'
  17.  
  18. scalar JSON
  19.  
  20. type Query {
  21. fetchUsers: JSON!
  22. }
  23.  
  24. type Mutation {
  25. signup(email: String!, password: String!, firstName: String!, lastName: String!):AuthPayload!
  26. login(email: String!, password: String!): AuthPayload!
  27. }
  28.  
  29. type AuthPayload {
  30. token: String
  31. user: User
  32. }
  33.  
  34. type User {
  35. id: ID!
  36. firstName: String!
  37. lastName: String!
  38. email: String!
  39. }
Add Comment
Please, Sign In to add comment