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' } }
}) |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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)
.Beta Was this translation helpful? Give feedback.
All reactions