Hi, I’m new with the mongodb driver for mongo but I’m quite experienced with other languages drivers.
I’m using the struct tags to insert document and I was wondering if there’s a way to use them (or any other way) to write strongly typed queries, projections, sorting documents.
I tried to look around but it seems everyone uses just strings over and over, and I hoped there would be a better way. I investigated a bit the bson package with the idea of marshalling the document myself but I cannot cover all cases.
Are there proper ways to do this?
Thank you