I'm a bit confused about option A; I feel like it should be using the `$elemMatch` operator or something like that, but I can't recall the exact details.
I'm not too familiar with MongoDB, so this type of question is a bit tricky for me. I'll have to think through the array syntax carefully and review the options before making a decision.
Okay, I got this. The key is that the tags field is an array, so we need to use the correct syntax to query for a specific value in the array. I'm pretty sure option C is the right answer here.
Hmm, I'm a bit confused by the array field in the question. I'm not sure if we need to use a special query to search for a value within an array. Maybe I should review the MongoDB array query syntax before answering.
This looks like a straightforward MongoDB query question. I think the answer is C, since the tags field is an array and we want to find all posts that have the 'tutorial' tag.
D) db.posts.findInArray( { tags : tutorial > ); sounds like it should work, but I've never heard of that command. Is that some secret MongoDB technique?
Ciara
4 months agoGabriele
4 months agoIsaiah
4 months agoEleonore
4 months agoArmando
5 months agoCherelle
5 months agoVeronika
5 months agoAdaline
5 months agoWillodean
5 months agoMa
6 months agoJudy
6 months agoBernadine
6 months agoAudria
6 months agoGlendora
12 months agoMerissa
11 months agoCyndy
11 months agoGerald
12 months agoGilma
12 months agoStefanie
1 year agoLorita
1 year agoLuis
1 year agoJonell
11 months agoNana
11 months agoTyisha
11 months agoFletcher
11 months agoLashon
11 months agoJennie
11 months agoTalia
11 months agoTimothy
11 months agoCorrie
1 year agoMindy
1 year agoKassandra
11 months agoVeronika
11 months agoStephane
11 months agoThea
1 year ago