This is probably the correct solution for this use case, but obviously and objectively much harder than object.get(id=1).
I was mainly doing this in Go, posted more in a side post.