Prisma, how to see relational foreign key id?

Viewed 19

Prisma, how to see relational foreign key id?

They say when you do this

await ctx.prisma.post.create({
        data: {
          title: input.title,
          content: input.content,
          contentHtml: markdownToHtml(input.content),
          author: {
            connect: {
              id: ctx.session.user.id,
            },
          },
        },
      })

It says "connect:" automatically connects. However, when I enter the database on planet scale and check, the corresponding column does not exist. How is this data permanently preserved? Also where can I extract it?

0 Answers
Related