Jim
05/05/2018, 3:13 AMconst ME = gql`
query me {
me {
id
}
}
`;
<Query query={ME}>
{({ loading, error, data }) => {
if (loading) return <Loading />;
const userisLoggedIn = error ? false : true;
// Then I use userisLoggedIn to conditionally render stuff
It seems to work but Graphcool BaaS retunred null rather than an error when you queried for a logged in user. For some reason that felt more proper to me.nilan
05/05/2018, 9:23 AMnull
if you wish so.