Relation field not appearing in model.createMany
Help would be appreciated, thanks. Yes I've run
npx prisma generate
.
1 Reply
Hi @thai 👋
You cannot access relations in a
createMany()
or createManyAndReturn()
query. See the documentation for detailed information.Relation queries (Concepts) | Prisma Documentation
Prisma Client provides convenient queries for working with relations, such as a fluent API, nested writes (transactions), nested reads and relation filters.