Complete rewrite of local state management.

This commit is contained in:
Patrick Fic
2019-12-06 23:30:15 -08:00
parent 8a72294c91
commit 4f3d917e06
17 changed files with 366 additions and 217 deletions

View File

@@ -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!
}
`;