0

I have more arrays but I only want to retrieve content of "PIZZAS"

anybody could tell me which is the correct query?

This is my BSON storaged in mongoDB

1 Answer 1

1

You can accomplish this by doing a projection. In the mongo shell it looks like this:

db.collection.find({}, { PIZZAS: 1, _id: 0})
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.