Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongo & MySQL assertion parallels #48

Open
ScottFreeCode opened this issue Feb 25, 2022 · 0 comments
Open

Mongo & MySQL assertion parallels #48

ScottFreeCode opened this issue Feb 25, 2022 · 0 comments

Comments

@ScottFreeCode
Copy link
Contributor

My thinking on MongoDB mocks is that, since it's a database, it should largely parallel MySQL (except where the difference between the two is relevant, if there are any).

In MySQL assertions we have four cases:

  • value, asserts equality to that value
  • field not included, no filtering/asserting on that field
  • None, asserts field IS NULL
  • validation.ANY, asserts field IS NOT NULL

I know Mongo assertions have the first two, maybe the first three. Is there a way to implement all four in MongoDB queries?

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

No branches or pull requests

1 participant