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
2 months agoGabriele
3 months agoIsaiah
3 months agoEleonore
3 months agoArmando
3 months agoCherelle
3 months agoVeronika
4 months agoAdaline
4 months agoWillodean
4 months agoMa
4 months agoJudy
4 months agoBernadine
5 months agoAudria
5 months agoGlendora
10 months agoMerissa
10 months agoCyndy
10 months agoGerald
10 months agoGilma
10 months agoStefanie
11 months agoLorita
11 months agoLuis
11 months agoJonell
9 months agoNana
9 months agoTyisha
9 months agoFletcher
10 months agoLashon
10 months agoJennie
10 months agoTalia
10 months agoTimothy
10 months agoCorrie
11 months agoMindy
11 months agoKassandra
10 months agoVeronika
10 months agoStephane
10 months agoThea
11 months ago