Mongoose returns undefined for an existing field

后端 未结 3 1711
执笔经年
执笔经年 2020-12-06 18:22

After a mongoose request I have my document doc which is the result of the query

Here is the schema used

var searchSchema = new mongoose         


        
3条回答
  •  温柔的废话
    2020-12-06 19:21

    You'll see this when you haven't added the field to your schema.

    Add image to your schema and it should work:

    image: String
    

提交回复
热议问题