Hi all With prisma-client I can do the following:...
# prisma-client
p
Hi all With prisma-client I can do the following:
Copy code
<http://db.post|db.post>({ id: '123'}).coments();
But is there a way to somehow get the following working?
Copy code
db.posts().comments();
n
This is currently not possible with the client API, see the docs here: https://www.prisma.io/docs/prisma-client/basic-data-access/reading-data-TYPESCRIPT-rsc3/#relations
👍 1
p
Got it. Any ideas when we'll get the feature?
l
It’s possible throught fragment
👍 1
n
Quick follow up, these are the GitHub issues where the relational API of the client is being discussed: - https://github.com/prisma/prisma/issues/3126 - https://github.com/prisma/prisma/issues/3668