menu

Prisma

🔴 The Prisma Spectrum community is not officially managed by Prisma's support team any more. Please seek help on GitHub or on Slack instead. Learn more: https://spectrum.chat/prisma/general/where-and-how-to-best-seek-help-with-questions-problems~687a1b8f-8658-4df3-8849-ea5ab3503f28

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Beta
view-forward
# Community
view-forward
# GraphQL
view-forward
# OSS
view-forward
# Random
view-forward
Team

Will Prisma 2 / Photon have "exists" query from Prisma 1?

September 12, 2019 at 1:48am

Will Prisma 2 / Photon have "exists" query from Prisma 1?

September 12, 2019 at 1:48am
In Prisma 1 if I had a User model, I could call db.exists.User({ email: "[email protected]" }) to check for existence. This came out of the box. Is Prisma 2 going to have this same functionality?

September 16, 2019 at 8:22pm
Wouldn't photon.users.findOne({ where: { email: "[email protected]" }) accomplish the same thing?
  • reply
  • like