How do you go about finding all the [options]
available to you when they are not listed out?
In the case of mongoose
for nodejs
:
http://mongoosejs.com/docs/api.html#schema_Schema-index
Examples help but are not often complete. How does one track down the full extent of the options
you can pass in as the second parameter?
It reads:
Schema#index(fields, [options])
Defines an index (most likely compound) for this schema.
show code
Parameters:
fields <Object>
[options] <Object>
Example
schema.index({ first: 1, last: -1 }, { unique: true })
In some places, all the options are detailed out, which is wonderful. example:
http://mongoosejs.com/docs/api.html#connection_Connection-openSet
Thanks.
Also, I found this lovely question/answer.