@@ -51,6 +51,8 @@ html(lang='en')
51
51
li.pure-menu-horizontal.pure-menu-item.pure-menu-has-children.pure-menu-allow-hover.version
52
52
a( href ="#" ) .pure-menu-link Version #{package .version }
53
53
ul.pure-menu-children
54
+ li.pure-menu-item
55
+ a.pure-menu-link ( href ="/docs" ) Version 6.x
54
56
li.pure-menu-item
55
57
a.pure-menu-link ( href ="/docs/4.x" ) Version #{package .latest4x }
56
58
li.pure-menu-item
@@ -60,86 +62,86 @@ html(lang='en')
60
62
button#search-button-nav
61
63
img( src ="/docs/images/search.svg" )
62
64
li.pure-menu-item
63
- a.pure-menu-link ( href ="/docs/index.html" , class =outputUrl === ' /docs /index.html' ? 'selected' : '' ) Quick Start
65
+ a.pure-menu-link ( href ="/docs/5.x/docs/ index.html" , class =outputUrl === ' /docs /index.html' ? 'selected' : '' ) Quick Start
64
66
li.pure-menu-item
65
- a.pure-menu-link ( href ="/docs/guides.html" , class =outputUrl === ' /docs /guides.html' ? 'selected' : '' ) Guides
67
+ a.pure-menu-link ( href ="/docs/5.x/docs/ guides.html" , class =outputUrl === ' /docs /guides.html' ? 'selected' : '' ) Guides
66
68
li.pure-menu-item.sub-item
67
- a.pure-menu-link ( href ="/docs/guide.html" , class =outputUrl === ' /docs /schemas.html' ? 'selected' : '' ) Schemas
69
+ a.pure-menu-link ( href ="/docs/5.x/ guide.html" , class =outputUrl === ' /docs /schemas.html' ? 'selected' : '' ) Schemas
68
70
li.pure-menu-item.sub-item
69
- a.pure-menu-link ( href ="/docs/schematypes.html" , class =outputUrl === ' /docs /schematypes.html' ? 'selected' : '' ) SchemaTypes
71
+ a.pure-menu-link ( href ="/docs/5.x/ schematypes.html" , class =outputUrl === ' /docs /schematypes.html' ? 'selected' : '' ) SchemaTypes
70
72
li.pure-menu-item.sub-item
71
- a.pure-menu-link ( href ="/docs/connections.html" , class =outputUrl === ' /docs /connections.html' ? 'selected' : '' ) Connections
73
+ a.pure-menu-link ( href ="/docs/5.x/ connections.html" , class =outputUrl === ' /docs /connections.html' ? 'selected' : '' ) Connections
72
74
- if ([' /docs/connections' , ' /docs/tutorials/ssl' ].some (path => outputUrl .startsWith (path)))
73
75
li.pure-menu-item.tertiary-item
74
- a.pure-menu-link ( href ="/docs/tutorials/ssl.html" , class =outputUrl === ' /docs /tutorials /ssl.html' ? 'selected' : '' ) SSL Connections
76
+ a.pure-menu-link ( href ="/docs/5.x/ tutorials/ssl.html" , class =outputUrl === ' /docs /tutorials /ssl.html' ? 'selected' : '' ) SSL Connections
75
77
li.pure-menu-item.sub-item
76
- a.pure-menu-link ( href ="/docs/models.html" , class =outputUrl === ' /docs /models.html' ? 'selected' : '' ) Models
78
+ a.pure-menu-link ( href ="/docs/5.x/docs/ models.html" , class =outputUrl === ' /docs /models.html' ? 'selected' : '' ) Models
77
79
li.pure-menu-item.sub-item
78
- a.pure-menu-link ( href ="/docs/documents.html" , class =outputUrl === ' /docs /documents.html' ? 'selected' : '' ) Documents
80
+ a.pure-menu-link ( href ="/docs/5.x/docs/ documents.html" , class =outputUrl === ' /docs /documents.html' ? 'selected' : '' ) Documents
79
81
li.pure-menu-item.sub-item
80
- a.pure-menu-link ( href ="/docs/subdocs.html" , class =outputUrl === ' /docs /subdocs.html' ? 'selected' : '' ) Subdocuments
82
+ a.pure-menu-link ( href ="/docs/5.x/docs/ subdocs.html" , class =outputUrl === ' /docs /subdocs.html' ? 'selected' : '' ) Subdocuments
81
83
li.pure-menu-item.sub-item
82
- a.pure-menu-link ( href ="/docs/queries.html" , class =outputUrl === ' /docs /queries.html' ? 'selected' : '' ) Queries
84
+ a.pure-menu-link ( href ="/docs/5.x/docs/ queries.html" , class =outputUrl === ' /docs /queries.html' ? 'selected' : '' ) Queries
83
85
- if ([' /docs/queries' , ' /docs/tutorials/findoneandupdate' , ' /docs/tutorials/lean' , ' /docs/tutorials/query_casting' ].some (path => outputUrl .startsWith (path)))
84
86
li.pure-menu-item.tertiary-item
85
- a.pure-menu-link ( href ="/docs/tutorials/query_casting.html" , class =outputUrl === ' /docs /tutorials /query_casting.html' ? 'selected' : '' ) Query Casting
87
+ a.pure-menu-link ( href ="/docs/5.x/docs/ tutorials/query_casting.html" , class =outputUrl === ' /docs /tutorials /query_casting.html' ? 'selected' : '' ) Query Casting
86
88
li.pure-menu-item.tertiary-item
87
- a.pure-menu-link ( href ="/docs/tutorials/findoneandupdate.html" , class =outputUrl === ' /docs /tutorials /findoneandupdate.html' ? 'selected' : '' ) findOneAndUpdate
89
+ a.pure-menu-link ( href ="/docs/5.x/docs/ tutorials/findoneandupdate.html" , class =outputUrl === ' /docs /tutorials /findoneandupdate.html' ? 'selected' : '' ) findOneAndUpdate
88
90
li.pure-menu-item.tertiary-item
89
- a.pure-menu-link ( href ="/docs/tutorials/lean.html" , class =outputUrl === ' /docs /tutorials /lean.html' ? 'selected' : '' ) The Lean Option
91
+ a.pure-menu-link ( href ="/docs/5.x/docs/ tutorials/lean.html" , class =outputUrl === ' /docs /tutorials /lean.html' ? 'selected' : '' ) The Lean Option
90
92
li.pure-menu-item.sub-item
91
- a.pure-menu-link ( href ="/docs/validation.html" , class =outputUrl === ' /docs /validation.html' ? 'selected' : '' ) Validation
93
+ a.pure-menu-link ( href ="/docs/5.x/docs/ validation.html" , class =outputUrl === ' /docs /validation.html' ? 'selected' : '' ) Validation
92
94
li.pure-menu-item.sub-item
93
- a.pure-menu-link ( href ="/docs/middleware.html" , class =outputUrl === ' /docs /middleware.html' ? 'selected' : '' ) Middleware
95
+ a.pure-menu-link ( href ="/docs/5.x/docs/ middleware.html" , class =outputUrl === ' /docs /middleware.html' ? 'selected' : '' ) Middleware
94
96
li.pure-menu-item.sub-item
95
- a.pure-menu-link ( href ="/docs/populate.html" , class =outputUrl === ' /docs /populate.html' ? 'selected' : '' ) Populate
97
+ a.pure-menu-link ( href ="/docs/5.x/docs/ populate.html" , class =outputUrl === ' /docs /populate.html' ? 'selected' : '' ) Populate
96
98
li.pure-menu-item.sub-item
97
- a.pure-menu-link ( href ="/docs/discriminators.html" , class =outputUrl === ' /docs /discriminators.html' ? 'selected' : '' ) Discriminators
99
+ a.pure-menu-link ( href ="/docs/5.x/docs/ discriminators.html" , class =outputUrl === ' /docs /discriminators.html' ? 'selected' : '' ) Discriminators
98
100
li.pure-menu-item.sub-item
99
- a.pure-menu-link ( href ="/docs/plugins.html" , class =outputUrl === ' /docs /plugins.html' ? 'selected' : '' ) Plugins
101
+ a.pure-menu-link ( href ="/docs/5.x/docs/ plugins.html" , class =outputUrl === ' /docs /plugins.html' ? 'selected' : '' ) Plugins
100
102
li.pure-menu-item.sub-item
101
- a.pure-menu-link ( href ="/docs/transactions.html" , class =outputUrl === ' /docs /transactions.html' ? 'selected' : '' ) Transactions
103
+ a.pure-menu-link ( href ="/docs/5.x/docs/ transactions.html" , class =outputUrl === ' /docs /transactions.html' ? 'selected' : '' ) Transactions
102
104
li.pure-menu-item.sub-item
103
- a.pure-menu-link ( href ="/docs/typescript.html" , class =outputUrl === ' /docs /typescript.html' ? 'selected' : '' ) TypeScript
105
+ a.pure-menu-link ( href ="/docs/5.x/docs/ typescript.html" , class =outputUrl === ' /docs /typescript.html' ? 'selected' : '' ) TypeScript
104
106
- if (outputUrl .startsWith (' /docs/typescript' ))
105
107
li.pure-menu-item.tertiary-item
106
- a.pure-menu-link ( href ="/docs/typescript/schemas.html" , class =outputUrl === ' /docs /typescript /schemas.html' ? 'selected' : '' ) Schemas
108
+ a.pure-menu-link ( href ="/docs/5.x/docs/ typescript/schemas.html" , class =outputUrl === ' /docs /typescript /schemas.html' ? 'selected' : '' ) Schemas
107
109
li.pure-menu-item.tertiary-item
108
- a.pure-menu-link ( href ="/docs/typescript/statics.html" , class =outputUrl === ' /docs /typescript /statics.html' ? 'selected' : '' ) Statics
110
+ a.pure-menu-link ( href ="/docs/5.x/docs/ typescript/statics.html" , class =outputUrl === ' /docs /typescript /statics.html' ? 'selected' : '' ) Statics
109
111
li.pure-menu-item.tertiary-item
110
- a.pure-menu-link ( href ="/docs/typescript/query-helpers.html" , class =outputUrl === ' /docs /typescript /query-helpers.html' ? 'selected' : '' ) Query Helpers
112
+ a.pure-menu-link ( href ="/docs/5.x/docs/ typescript/query-helpers.html" , class =outputUrl === ' /docs /typescript /query-helpers.html' ? 'selected' : '' ) Query Helpers
111
113
li.pure-menu-item.tertiary-item
112
- a.pure-menu-link ( href ="/docs/typescript/populate.html" , class =outputUrl === ' /docs /typescript /populate.html' ? 'selected' : '' ) Populate
114
+ a.pure-menu-link ( href ="/docs/5.x/docs/ typescript/populate.html" , class =outputUrl === ' /docs /typescript /populate.html' ? 'selected' : '' ) Populate
113
115
li.pure-menu-item
114
- a.pure-menu-link ( href ="/docs/api.html" , class =outputUrl === ' /docs /api.html' ? 'selected' : '' ) API
116
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api.html" , class =outputUrl === ' /docs /api.html' ? 'selected' : '' ) API
115
117
li.pure-menu-item.sub-item
116
- a.pure-menu-link ( href ="/docs/api/mongoose.html" , class =outputUrl === ' /docs /api /mongoose.html' ? 'selected' : '' ) Mongoose
118
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api/mongoose.html" , class =outputUrl === ' /docs /api /mongoose.html' ? 'selected' : '' ) Mongoose
117
119
li.pure-menu-item.sub-item
118
- a.pure-menu-link ( href ="/docs/api/schema.html" , class =outputUrl === ' /docs /api /schema.html' ? 'selected' : '' ) Schema
120
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api/schema.html" , class =outputUrl === ' /docs /api /schema.html' ? 'selected' : '' ) Schema
119
121
li.pure-menu-item.sub-item
120
- a.pure-menu-link ( href ="/docs/api/connection.html" , class =outputUrl === ' /docs /api /connection.html' ? 'selected' : '' ) Connection
122
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api/connection.html" , class =outputUrl === ' /docs /api /connection.html' ? 'selected' : '' ) Connection
121
123
li.pure-menu-item.sub-item
122
- a.pure-menu-link ( href ="/docs/api/document.html" , class =outputUrl === ' /docs /api /document.html' ? 'selected' : '' ) Document
124
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api/document.html" , class =outputUrl === ' /docs /api /document.html' ? 'selected' : '' ) Document
123
125
li.pure-menu-item.sub-item
124
- a.pure-menu-link ( href ="/docs/api/model.html" , class =outputUrl === ' /docs /api /model.html' ? 'selected' : '' ) Model
126
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api/model.html" , class =outputUrl === ' /docs /api /model.html' ? 'selected' : '' ) Model
125
127
li.pure-menu-item.sub-item
126
- a.pure-menu-link ( href ="/docs/api/query.html" , class =outputUrl === ' /docs /api /query.html' ? 'selected' : '' ) Query
128
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api/query.html" , class =outputUrl === ' /docs /api /query.html' ? 'selected' : '' ) Query
127
129
li.pure-menu-item.sub-item
128
- a.pure-menu-link ( href ="/docs/api/aggregate.html" , class =outputUrl === ' /docs /api /aggregate.html' ? 'selected' : '' ) Aggregate
130
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api/aggregate.html" , class =outputUrl === ' /docs /api /aggregate.html' ? 'selected' : '' ) Aggregate
129
131
li.pure-menu-item.sub-item
130
- a.pure-menu-link ( href ="/docs/api/schematype.html" , class =outputUrl === ' /docs /api /schematype.html' ? 'selected' : '' ) SchemaType
132
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api/schematype.html" , class =outputUrl === ' /docs /api /schematype.html' ? 'selected' : '' ) SchemaType
131
133
li.pure-menu-item.sub-item
132
- a.pure-menu-link ( href ="/docs/api/virtualtype.html" , class =outputUrl === ' /docs /api /virtualtype.html' ? 'selected' : '' ) VirtualType
134
+ a.pure-menu-link ( href ="/docs/5.x/docs/ api/virtualtype.html" , class =outputUrl === ' /docs /api /virtualtype.html' ? 'selected' : '' ) VirtualType
133
135
li.pure-menu-item
134
- a.pure-menu-link ( href ="/docs/compatibility.html" , class =outputUrl === ' /docs /compatibility.html' ? 'selected' : '' ) Version Compatibility
136
+ a.pure-menu-link ( href ="/docs/5.x/docs/ compatibility.html" , class =outputUrl === ' /docs /compatibility.html' ? 'selected' : '' ) Version Compatibility
135
137
li.pure-menu-item
136
- a.pure-menu-link ( href ="/docs/faq.html" , class =outputUrl === ' /docs /faq.html' ? 'selected' : '' ) FAQ
138
+ a.pure-menu-link ( href ="/docs/5.x/docs/ faq.html" , class =outputUrl === ' /docs /faq.html' ? 'selected' : '' ) FAQ
137
139
li.pure-menu-item
138
- a.pure-menu-link ( href ="/docs/further_reading.html" , class =outputUrl === ' /docs /further_reading.html' ? 'selected' : '' ) Further Reading
140
+ a.pure-menu-link ( href ="/docs/5.x/docs/ further_reading.html" , class =outputUrl === ' /docs /further_reading.html' ? 'selected' : '' ) Further Reading
139
141
li.pure-menu-item
140
- a.pure-menu-link ( href ="/docs/enterprise.html" , class =outputUrl === ' /docs /enterprise.html' ? 'selected' : '' ) For Enterprise
142
+ a.pure-menu-link ( href ="/docs/5.x/docs/ enterprise.html" , class =outputUrl === ' /docs /enterprise.html' ? 'selected' : '' ) For Enterprise
141
143
li.pure-menu-item
142
- a.pure-menu-link ( href ="/docs/built-with-mongoose.html" , , class =outputUrl === ' /docs /built-with-mongoose.html' ? 'selected' : '' ) Built with Mongoose
144
+ a.pure-menu-link ( href ="/docs/5.x/docs/ built-with-mongoose.html" , , class =outputUrl === ' /docs /built-with-mongoose.html' ? 'selected' : '' ) Built with Mongoose
143
145
div.cpc-ad
144
146
<script async type =" text/javascript" src =" //cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=mongoosejscom" id =" _carbonads_js" ></script >
145
147
.container
0 commit comments