问题 I would like to get all Notifications between a start and end date that are related to a Register when I pass in a userId. Register Schema const mongoose = require('mongoose'); const Schema = mongoose.Schema; const RegisterSchema = new Schema({ userId: {type: Schema.Types.ObjectId, required: true}, accessToken: {type:String, required: true, default: null}, }) module.exports = Register = mongoose.model( 'register', RegisterSchema) Here is some register data [ { "_id": "5eac9e815fc57b07f5d0d29f