By default, queries in MongoDB return all fields in matching documents. To limit the ... This page provides examples of query operations with projection using the ...
golang-mongodb-projection
It uses 'SetProjection' to select the fields to return (rather than all of them) and to include the index relevance score in the results. The _id field is always returned. 939c2ea5af
golang mongodb projection
Comments