Is it possible to retrieve values from mongoDB during the creation of a schema?

What you can do is you can run a raw mongodb query. Example:

mongoose.connection.db.collection('fruitCollection').find({ ... })

Get your expected data from the collection and the build schema/model based on it.