I am looking for convinient way to check if object already exists in collection. For now the only way that i have found is
type result interface{} var res re
you have to use $exists
Syntax: { field: { $exists: } }
For more details
http://docs.mongodb.org/manual/reference/operator/query/exists/