Replies: 1 comment 8 replies
|
Hey, @tarjei. Do I understand you correctly that you'd like to propose a shorthand for this: const db = factory({
user: { id: primaryKey(String) }
})
// For this particular query by the primary key ("id").
db.user.findOne({
where: { id: { equals: 'abc-123' } }
}) |
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, I often find myself querying for a single entity by an known primary key.
It would be super useful to have this as a separate method
find(primaryKey).All reactions