Lab 2.4 Question Answer showing incorrect

Correct answer is 20 but It shows Wrong Whats the issue

Please follow forum guidelines
Don’t post potential answers
Double check your lab/assignment.Are you connected to right cluster/DB

I have Connected to right cluster

Hi @Logic_57122,

Kindly go through the following doc and recheck your query:

Query an Array

If you still have any doubts regarding the query, please let me know.

Thanks,
Sonali

Hi !
Still getting incorrect answer in shell and compass.
Please advise.


Thanks !

Hi @ajaibhatnagar,

You are thinking in the right direction except you are querying for exact match.

In arrays, when you query like this:

  document: ["Test"]

It means you are querying for all the documents with document : ["Test"] as it is.

I think, reading documentation: Query an Array or watching the lecture again might help.

Kanika

1 Like