I need to compare two fields on my mongo db database, and this is the query for that
db.characters.find({$expr:{$eq:["$currentLv", "$maxLv"]}})
How can i query like this on mongo db driver for golang (mgo)
I need to compare two fields on my mongo db database, and this is the query for that
db.characters.find({$expr:{$eq:["$currentLv", "$maxLv"]}})
How can i query like this on mongo db driver for golang (mgo)
Copyright © 2021 Jogjafile Inc.
I won't write about how instantiate connection to mongodb, if you didn't know, here is the link.
And your query will be something like that: