Join Slack
Powered by
is there any practical difference between doing `{...
# orm-help
p
Perry Raskin
10/20/2021, 5:00 PM
is there any practical difference between doing
{ userId: 50 }
and
{ User: { connect: { id: 50 } } }
?
a
Austin
10/20/2021, 8:18 PM
Hi
@Perry Raskin
! I don't believe there is any
practical
difference. The generated SQL will most likely differ, though. You can check this out for yourself by
enabling query logging
on the
PrismaClient
.
p
Perry Raskin
10/20/2021, 8:19 PM
thanks!!
👍 1
2
Views
Open in Slack
Previous
Next