Extending generated graphql type and resolver

RW generators don’t handle all edge cases. As an example from the RW CLI docs for yarn rw generate sdl <model>:

The sdl will inspect your schema.prisma and will do its best with relations. Schema to generators isn’t one-to-one yet (and might never be).

But you can add custom generators (including for services). You should be able to extend the existing template with your added method.

1 Like