Skip to content

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Jun 18, 2021

Driver v4 compatibility fix. We were receiving this error:
Screen Shot 2021-06-18 at 12 46 48 PM

An error occured when attempting to update the document: findOneAndUpdate option returnOriginal is deprecated in favor of returnDocument and cannot be combined

Since we were supplying both the old and new options. This PR updates the data-service and compass-crud to use the new driver syntax exclusively. This does mean we'll have to use the new driver option syntax in vscode if we're updating the data-service there as well.

@gribnoysup
Copy link
Collaborator

Merged latest changes into the branch to see how CI will run now

@addaleax addaleax merged commit bc1f908 into master Jun 21, 2021
@addaleax addaleax deleted the fix-update-doc-return-original branch June 21, 2021 09:14
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.

4 participants