The following line in my Nuxt server middleware throws a syntax error:
query._id &&= new mongo.ObjectId(query._id)
ERROR ServerMiddleware Error: Unexpected token '&&=' query._id &&= new _mongoose.mongo.ObjectId(query._id); ^^^
query._id = query._id && new mongo.ObjectId(query._id)
Because yeah, the new things usually take a bit more time to come to the backend than the front-end.
You’re probably running on the latest LTS aka v14, type
node -v to be sure.