Hey guys, I’ll ask again, has anyone been able to ...
# orm-help
i
Hey guys, I’ll ask again, has anyone been able to implement a generation of custom directives with
nexus
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.
m
something like this:
Copy code
export 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!' };
  }
});
i
@macejmic where is the custom directives?
h
There is an open issue about this: https://github.com/prisma/nexus/issues/53