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.
1 parent 2587db7 commit 7e219abCopy full SHA for 7e219ab
source/reference/known-issues.txt
@@ -89,4 +89,10 @@ the field ``$type`` is ``array`` with the ``createView`` method.
89
90
.. code-block:: javascript
91
92
- db.createView('nonullsched', '"nextDeparture"', [{'$match': {'response.schedule': {'$type': 'array'}}}])
+ db.createView("nextDeparture_view", "nextDeparture", [
93
+ {
94
+ "$project": {
95
+ "response": { "$cond": { "if": { "$eq": ["$response.schedule", null] },
96
+ "then": { }, "else": "$response" } }, "name": 1
97
+ }
98
+ } ])
0 commit comments