We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f552ade + 7e219ab commit 6cdf720Copy full SHA for 6cdf720
source/reference/known-issues.txt
@@ -92,4 +92,10 @@ the field ``$type`` is ``array`` with the ``createView`` method.
92
93
.. code-block:: javascript
94
95
- db.createView('nonullsched', '"nextDeparture"', [{'$match': {'response.schedule': {'$type': 'array'}}}])
+ db.createView("nextDeparture_view", "nextDeparture", [
96
+ {
97
+ "$project": {
98
+ "response": { "$cond": { "if": { "$eq": ["$response.schedule", null] },
99
+ "then": { }, "else": "$response" } }, "name": 1
100
+ }
101
+ } ])
0 commit comments