Closed sfrenot closed 5 years ago
I think that we can select fields with find query, but not with findOne query.
niveaucompetence.ue = find({"ecs":niveaucompetence.ec._id}, { database: "competences", collection: "ues", select: { "nom": 1, } });
works, but
niveaucompetence.ue = findOne({"ecs":niveaucompetence.ec._id}, { database: "competences", collection: "ues", select: { "nom": 1, } });
I also have a problem with select{"_id": } that I presume is not working.
Wrong project... Sorry
Thanks I think I see the problem where the projection is not being applied to findOne. I’ll get a fix out for this soon.
I think that we can select fields with find query, but not with findOne query.
works, but
isn't.
I also have a problem with select{"_id": } that I presume is not working.