You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this when using findOne. I had naively followed the monk docs and passed a fields option to the method. However, that option has been deprecated for at least a couple years based on the mongodb commits. You can also see that it's deprecated in the mongodb docs which are linked to from the monk docs.
The monk docs should probably be updated to use the projection option instead, which is a direct replacement for fields.
The text was updated successfully, but these errors were encountered:
While #304 fixes this in terms of findOne's documentation there are still references to fields in other places such as the find documentation. These should also be fixed.
Also see #308 for more concerns re: this documentation not quite reflecting reality and sending me down a rabbit hole.
I noticed this when using
findOne
. I had naively followed the monk docs and passed afields
option to the method. However, that option has been deprecated for at least a couple years based on the mongodb commits. You can also see that it's deprecated in the mongodb docs which are linked to from the monk docs.The monk docs should probably be updated to use the
projection
option instead, which is a direct replacement forfields
.The text was updated successfully, but these errors were encountered: