SyntaxError, Chapter 4, Quiz 1 Logic, $and question

I keep getting an error similar to this:
[js] SyntaxError: missing ] after element list @(shell):1:47

…whenever I retype a variation of the following $and based query.

db.inspections.find([{result:“Out of Business”};{sector:“Home Improvement Contractor - 100”}]).count()
2021-01-13T17:10:26.135+0000 E QUERY

I can’t understand where a bracket needed to complete this function. How can I correct this?

Queries are JSON documents and follows the same syntax. The semicolon ; is not part of JSON syntax.

Thanks Steve. That’s helpful, but it hasn’t resolved the issue. I’m not sure how to interpret the error message “@(shell):3:44” or variant of that part.

SyntaxError: missing ] after element list @(shell):3:44

Still getting the bracketing issue

I suggest that you read db.collection.find() — MongoDB Manual

Find takes an object for the query but you start yours with a bracket.

Also revise the beginning of Chapter 4. There are plenty of examples prior to this quiz.

Looking into it. Thanks for the resource!