Comment

Comment by jbverschoor

Besides the issue, I always create a method like get/find find_one, find_unique, find_unique, or find_only, in cases where I expect exactly one result. I’m a query or collection. I’ll have a separate for when I expect one or zero results.

Unfortunately it’s crazy difficult to even get such a small addition committed upstream, but that’s a different story

parent jbverschoor 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton