Prisma1: Prisma requires an ID field every type

Created on 21 Nov 2018  路  4Comments  路  Source: prisma/prisma1

Currently, Prisma requires an ID field on every type.

However, ID fields might not exist on existing databases, which can break introspection.

Examples are:

  • Embedded types in MongoDB, where an _id is not required
  • Tables without ID or PrimaryKey in Postgres or MySql
kinfeature areengine

Most helpful comment

Go away, stale bot!

All 4 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

Go away, stale bot!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

~Fixed with datamodel v1.1~

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akoenig picture akoenig  路  3Comments

schickling picture schickling  路  3Comments

marktani picture marktani  路  3Comments

MitkoTschimev picture MitkoTschimev  路  3Comments

sedubois picture sedubois  路  3Comments