sdy

update typeDefs

import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const defaults = {
isLoggedIn: Boolean(localStorage.getItem("token") || false),
};
export const typeDefs = gql`
extend type Query {
isLoggedIn: Boolean!
}
`;
export const resolvers = {
Mutation: {
......@@ -26,14 +28,4 @@ export const resolvers = {
return null;
},
},
Query: {
checkLogIn: (_, __) => {
const query = gql`
{
isLoggedIn @client
}
`;
return query;
},
},
};
......