How to use mongoose findOne

前端 未结 5 1666
死守一世寂寞
死守一世寂寞 2020-12-01 07:32

I have the below schema (apologies that it is in coffeescript)

Schema = mongoose.Schema

AuthS = new Schema
    auth:   {type: String, unique: true}
    nick         


        
5条回答
  •  粉色の甜心
    2020-12-01 07:54

    You might want to consider using console.log with the built-in "arguments" object:

    console.log(arguments); // would have shown you [0] null, [1] yourResult
    

    This will always output all of your arguments, no matter how many arguments you have.

提交回复
热议问题