vapor-community / mongo-driver

MongoDB driver for Fluent
28 stars 26 forks source link

Add support for subset queries #35

Closed jordoh closed 7 years ago

jordoh commented 7 years ago

This adds support for subset queries, i.e.:

query.filter(.subset("_id", .in, ids))

and

query.filter(.subset("_id", .notIn, ids))
jordoh commented 7 years ago

Hi @Joannis - I've pushed with tests for .in and .notIn, but have a couple questions:

Joannis commented 7 years ago

Hello @jordoh :)

First of all, thanks for the PR 👍 The unit tests could be in Fluent, I think that wouldn't be unreasonable. @tanner0101 , what do you think?

I just noticed that, too. It's not your code that broke it, I'm certain of that.

I'll leave the merge and tag up to @tanner0101 , and if he thinks this test needs to be moved to Fluent that could be done after the merge :)

Thanks again :)