gothinkster / gothinkster/node-express-realworld-example-app

deprecated push method

Open
#96 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.8k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

native push method triggers mongoDB's $pushAll method. It's deprecated after MongoDB 3.6.2.
Need to replace with concat method => `this.favorites = this.favorites.concat([id]);`
https://github.com/gothinkster/node-express-realworld-example-app/blob/ba04b70c31af81ca7935096740a6e083563b3a4a/models/User.js#L63

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.