I’m migrating my server based on prisma-bindings t...
# orm-help
h
I’m migrating my server based on prisma-bindings to prisma-client and graphqlgen. Is this the correct way to express relations using prisma client now?
Copy code
import { CalendarResolvers } from '../generated/graphqlgen'

export const Calendar: CalendarResolvers.Type = {
    ...CalendarResolvers.defaultResolvers,
    events: (parent, args, ctx) => {
        return ctx.db.calendar({ id: parent.id }).events()
    },
}
w
This is the right way to do it 👍