Prisma-client-js: "exists" query from Prisma 1

Created on 12 Sep 2019  路  2Comments  路  Source: prisma/prisma-client-js

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

kinfeature

Most helpful comment

Yes, this is the WIP Photon spec: https://github.com/prisma/specs/tree/master/photonjs#basic-queries

Exists will be a part of the API in future.

Please share your feedback on the upcoming Photon API via issues here: https://github.com/prisma/specs/issues

All 2 comments

Yes, this is the WIP Photon spec: https://github.com/prisma/specs/tree/master/photonjs#basic-queries

Exists will be a part of the API in future.

Please share your feedback on the upcoming Photon API via issues here: https://github.com/prisma/specs/issues

Hello @nhuesmann,

Thanks for taking the time to submit this issue!
The feature request is being tracked in https://github.com/prisma/prisma-client-js/issues/703.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maartenraes picture maartenraes  路  4Comments

julien1619 picture julien1619  路  3Comments

MichalLytek picture MichalLytek  路  3Comments

samrith-s picture samrith-s  路  3Comments

FluorescentHallucinogen picture FluorescentHallucinogen  路  3Comments