Complete rewrite of local state management.
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
import { gql } from "apollo-boost";
|
||||
import { GET_CURRENT_USER } from "./local.queries";
|
||||
|
||||
export const typeDefs = gql`
|
||||
extend type Mutation {
|
||||
SetCurrentUser(user: User!): User!
|
||||
}
|
||||
|
||||
type User {
|
||||
displayName: String!,
|
||||
email: String!,
|
||||
photoUrl: String!
|
||||
}
|
||||
`;
|
||||
|
||||
const GET_CURRENT_USER = gql`
|
||||
{
|
||||
currentUser @client
|
||||
extend type User {
|
||||
email: String!
|
||||
displayName: String!
|
||||
token: String!
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user