Open hbredin opened 6 years ago
cc @francoisromain
Can you try latest version in develop
using docker-compose ... up --build -d
?
Downgrading to mongodb 3.5 (db version v3.5.13
) does not fix the problem.
v.3.4 fixes it.
The latest version of camomile-server
in develop
branch should work with 3.6 as well...
ah ok I try this one
The last version in develop does not start. It makes this error:
const MongoClient = require('mongodb')
SyntaxError: Use of const in strict mode.
If you want to use es6, you should use at least node 4.
thanks for solution
А вот так можно const mongoose = require ('mongoose') const Схема = mongoose.Schema
const UserSchema = new Schema ({ telegramId: { type: Number, required: true },
films: { type: [String], default: [], новая схема ({}, {usePushEach: true}) } })
mongoose.model ('users', UserSchema)
cc @francoisromain
https://github.com/Automattic/mongoose/issues/5870 https://github.com/Automattic/mongoose/issues/4455
Workaround:
set the usePushEach option in all schemas with arrays