the '_id' field is supressed. To get the '_id' field I have to call con$find(fields = '{"_id":1}') but then I don't get all the other variables. So to really get all variables I have to explicitly name all the variables in the projection which is bad if I have hundreds of variables.
Am I missing something? Otherwise I would suggest to change the default behaviour and always include the '_id' field (as it is the default behaviour of the native "db.collection.find()" method).
when fetching data from mongodb via
the '_id' field is supressed. To get the '_id' field I have to call
con$find(fields = '{"_id":1}')
but then I don't get all the other variables. So to really get all variables I have to explicitly name all the variables in the projection which is bad if I have hundreds of variables.Am I missing something? Otherwise I would suggest to change the default behaviour and always include the '_id' field (as it is the default behaviour of the native "db.collection.find()" method).