> the info object can't be used to resolve rela...
# orm-help
c
the info object can't be used to resolve relations automatically any more, instead you'll need to implement your type resolvers to ensure that relations get resolved properly.
Are there any examples of this anywhere? Ref: https://www.prisma.io/docs/guides/upgrade-guides/upgrade-from-prisma-1/upgrading-prisma-binding-to-sdl-first/
a
@cfree, you can use the PrismaSelect plugin to convert info object to be a prisma select object look here https://paljs.com/plugins/select#normal-use
💯 1
👍 1
n
Hey Craig 👋 all the GraphQL examples in the
prisma-examples
repo are using the approach of resolving relations via type resolvers, e.g. here and here.
🙏 1