sdy

remove clientQuery

import gql from "graphql-tag";
const clientQuery = gql`
{
isLoggedIn @client
}
`;
export const defaults = {
isLoggedIn: Boolean(localStorage.getItem("token") || false),
};
......@@ -33,6 +27,13 @@ export const resolvers = {
},
},
Query: {
clientQuery,
checkLogIn: (_, __) => {
const query = gql`
{
isLoggedIn @client
}
`;
return query;
},
},
};
......