Hong
02/22/2021, 7:20 AMnikolasburk
Hong
02/22/2021, 9:08 AMnikolasburk
But there is an extended question in the latest message.Can you please point me to the message you're referring to? Happy to help 🙂
Hong
02/22/2021, 9:29 AMHong
02/22/2021, 9:29 AMt.field('profile', {
type: 'Profile',
resolve: (parent) =>
prisma.user
.findUnique({
where: { id: Number(parent.id) },
})
.profile(),
})
Hong
02/22/2021, 9:32 AMHong
02/22/2021, 9:33 AMnikolasburk
Profile
to the types
array in makeSchema
and also make sure to run the server so that Nexus generates the types 🙂 the instructions here are probably more up to date than the ones in the README you're currently following: https://github.com/prisma/prisma-examples/tree/latest/typescript/graphql#1-migrate-your-database-using-prisma-migrateHong
02/22/2021, 10:10 AMHong
02/23/2021, 2:55 AMHong
02/23/2021, 5:54 AMProfile
 type to your GraphQL schema.
May need to be modified to the following figure:nikolasburk