Complete rewrite of local state management.
This commit is contained in:
17
client/src/graphql/local.queries.js
Normal file
17
client/src/graphql/local.queries.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { gql } from "apollo-boost";
|
||||
|
||||
export const SET_CURRENT_USER = gql`
|
||||
mutation SetCurrentUser($user: User!) {
|
||||
setCurrentUser(user: $user) @client {
|
||||
email
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const GET_CURRENT_USER = gql`
|
||||
{
|
||||
currentUser @client {
|
||||
email
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user