The MongoDB docs make sense, but I’m a little confused about where/how to get access to the query…
Chris Murphy
1

In your resolver function, you pass in a ResolveParams struct which will contain the data you’re querying (should be ResolveParams.Args). From here you’d have to take whatever your args are and massage it into Mongo’s format.

Hopefully this helps, if not, I’ll try and get some time to spin up some code if you like :)