They all will have the same key to be fetched. I ended up just creating two new query methods in the nodebb code cause I couldn't find a solution for my problem:
module.mget_type = async function (type) {
const data = await module.client.collection('objects').find(
{ type },
{ projection: { _id: 0 } }
).toArray();
return data;
};
module.mget_field_value = async function (field, value) {
const data = await module.client.collection('objects').find(
{ [field]: value },
{ projection: { _id: 0 } }
).toArray();
return data;
};