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

Issues with ClearAndLoad #34

Open
b-wils opened this issue Aug 10, 2016 · 0 comments
Open

Issues with ClearAndLoad #34

b-wils opened this issue Aug 10, 2016 · 0 comments

Comments

@b-wils
Copy link

b-wils commented Aug 10, 2016

I have the following scenario-

Col A - Keep all data
Col B - Clear all and load fixture
Col C - Clear all data

Ideally I would like to specify collection C as an empty array in my fixture and then this library would clear all data from it. However I will get an error "Invalid Operation, No operations in bulk". At this point the jobs collection will not exist and subsequent operations will throw a "ns not found" error.

I think the solution would be if a fixture array is empty, create an empty collection instead of trying to insert items.

I could work around this by always dropping collection C and ignoring any errors, but this seems less than ideal.

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