mongodb - Can mongoose query the value of the corresponding key of the document object?
巴扎黑
巴扎黑 2017-05-17 10:04:00
0
2
846



The document information is shown in Figure 2. When I query through Figure 1, I get undefined. Why?

巴扎黑
巴扎黑

reply all(2)
PHPzhong

Dear, here is a question similar to yours that has been answered. Let’s see if your situation is the same as his: /q/10...

某草草

There must be definition-related keys in the schema. For example, if there is type in schameA, but you add an additional category to docA during your operation, then querying docA.category will output undefined, because schemaA does not have it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template