Are there any example of using select/include on c...
# orm-help
a
Are there any example of using select/include on create? Nothing in the docs around CRUD. 😞
n
Hey Alex πŸ‘‹ here's how you use
select
within a
create
query:
Copy code
prisma.user.create({
	data: { name: "Alice" },
	select: { 
		email: true, 
		posts: true
	}
})
Does that help? πŸ™‚
r
It’s the same as mentioned here. The examples may be for find, but the parameters taken are the same.
πŸ‘ 1