sdy

add graphql-tag

import gql from "graphql-tag";
const clientQuery = gql`
{
isLoggedIn @client
}
`;
export const defaults = {
isLoggedIn: Boolean(localStorage.getItem("token") || false),
};
......@@ -24,4 +32,7 @@ export const resolvers = {
return null;
},
},
Query: {
clientQuery,
},
};
......