▲
Size: a a a
IZ
▲
IZ
▲
▲
▲
MA
MA
const defaultOptions = {
watchQuery: {
fetchPolicy: 'network-only',
errorPolicy: 'ignore',
},
query: {
fetchPolicy: 'network-only',
errorPolicy: 'ignore',
},
};
const link = new HttpLink({
uri: config.GRAPHQL_HOST,
credentials: 'same-origin',
fetch: global.fetch ? global.fetch : require('node-fetch'),
});
export const client = new ApolloClient({
link,
ssrMode: !process.browser,
cache: new InMemoryCache(),
defaultOptions,
});
EM
EM
EM
EM
EM
AK
AL
OG
OG
me: async (root, args, ctx, info) => {
return await prisma.user({id:oc(ctx).user.id('not authorized')})
}
OG