Skip to content

update '_remove' method#364

Merged
marshallswain merged 2 commits intofeathersjs-ecosystem:masterfrom
sarkistlt:patch-1
Jan 8, 2020
Merged

update '_remove' method#364
marshallswain merged 2 commits intofeathersjs-ecosystem:masterfrom
sarkistlt:patch-1

Conversation

@sarkistlt
Copy link
Contributor

#361

Summary

Better support for shard cluster.

Other Information

Replace findOneAndDelete with combination of findById and deleteOne, because in the shard cluster based on MongoDB specification if you are using findOneAnd[*] you have to pass entire shard key, which can be a combination of different fields.

This should not be required when you trying to remove document from the collection, just providing _id should be enough.

#365 better support for shard cluster
@marshallswain
Copy link
Member

marshallswain commented Jan 4, 2020

@sarkistlt thanks for the PR. I've just merged another PR that fixes a similar issue for patch requests. Can you address the 32 failing tests? Please let me know.

fix for failed test that uses id + query to remove record(s)
@sarkistlt
Copy link
Contributor Author

@marshallswain ok should be fine now

@marshallswain marshallswain merged commit 5fbe560 into feathersjs-ecosystem:master Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants