These are chat archives for Automattic/mongoose

May 2017
Apoorv Mishra
May 09 2017 21:42

Hi, this is my schema -

var bookSchema = mongoose.Schema({
        id: String,
        volumeInfo: {
          title: String,
          authors: Array,
          publisher: String,
          publishedDate: String,
          description: String,
          industryIdentifiers: Array,
          pageCount: Number,
          printType: String,
          categories: Array,
          language: String

and model -

var Book = mongoose.model('Book', bookSchema);
I want to do Book.find(<industryIdentifiers>)
How should I achieve this?