When you perform a search in a collection and wish to exclude one or several fields you can use 0 to indicate not to show the field:
db.colleccion.find({}, {"nombre campo no requerido": 0 })
to include it we use 1
db.colleccion.find({}, {"nombre campo no requerido": 1 })
In the case of what you do, you get all the elements of the collection but only show the "building" field, while the "_id" field excludes it:
db.terminales.find({}, {"edificio":1, "_id":0});
with this result:
"edificio": "qfmSLTmr3tyZwykaA"
If you want to obtain only the value (or the values of a certain field) you get it this way:
db.terminales.find().forEach(function(row) {print(row.edificio);})
with this you will get only the value of the field edificio
qfmSLTmr3tyZwykaA