Idiomatic options with possibly undefined values
Should be a simple one, I've tried looking around on the forum and the internet.
What's the idiomatic was of handling this? I pass an array of ids, objects to create or
Notes:
- This is Convex DB there's no need bulk insert, it's guaranteed to be transactional. It's weirdly cool.
- This uses
What's the idiomatic was of handling this? I pass an array of ids, objects to create or
{type: "none"}, I want to return a list of both the existing items and the created items and I don't want to have to manually filter in the caller.Notes:
- This is Convex DB there's no need bulk insert, it's guaranteed to be transactional. It's weirdly cool.
- This uses
@maple/convex-effect which allows me to use effects as mutation/query handlers.