impowski
08/05/2019, 8:30 AMnexus
and nexus-prisma
? I need to be able to use it with apollo-server
and have no idea how to get it working and generate schema.graphql
with it.macejmic
08/05/2019, 9:35 AMexport const HealthCheck = objectType({
name: "HealthCheck",
definition: t => {
t.string("status");
}
});
const HealthCheckQuery = queryField('healthCheck', {
type: 'HealthCheck',
async resolve(_parent, _args, _ctx) {
return { status: 'All good!' };
}
});
impowski
08/05/2019, 10:56 AMHarshit
08/05/2019, 5:47 PM