You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like the command in the docs is wrong. The correct one is bunx prisma-repository.
But I will remove the prisma-extended-models soon because they are quite outdated and might not work with the latest version of pylon.
Instead you should use prismas client extensions, there you can define extra fields on your data result which is then used by pylon.
For example:
constprisma=newPrismaClient().$extends({name: 'code',result: {project: {user: {needs: {userId: true,},compute(args){returnasync()=>{returnawaitprisma.user.findFirstOrThrow({where: {id: args.userId,},});};},}},},});exportconstgraphql={Query: {project: async(projectSlug: string)=>{// This will also include the user relation that is only queried if neededreturnawaitprisma.project.findFirst({where: {slug: projectSlug,},});},},};
this package deleted ?
The text was updated successfully, but these errors were encountered: