Open matt-paul opened 2 years ago
Hello. Firstly, thanks for your work on this.
I am following this guide for removing nexus-plugin-prisma, to use 'vanilla nexus'.
However, i'm struggling to replicate the following.
t.model.id({ alias: 'databaseId' });
Can anyone enlighten me please?
Context: Relay expects 'id' to be globally unique, so I need to alias the id of the record coming back from prisma/database.
t.nonNull.id('databaseId' { resolve: ({ id }) => id });
Hello. Firstly, thanks for your work on this.
I am following this guide for removing nexus-plugin-prisma, to use 'vanilla nexus'.
However, i'm struggling to replicate the following.
t.model.id({ alias: 'databaseId' });
Can anyone enlighten me please?
Context: Relay expects 'id' to be globally unique, so I need to alias the id of the record coming back from prisma/database.