commit | ef63fdc533076c6f99ead829dd93c06d639b7833 | [log] [tgz] |
---|---|---|
author | Gabor Pali <gabor.pali@ibm.com> | Tue Jan 17 10:54:19 2023 +0100 |
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | Thu Jan 19 14:08:59 2023 -0500 |
tree | 4172575d057b889ad0d3f8c008ea3eb08183af2f | |
parent | fd801918225edd82ca2219c8f0a7eb0c58d28191 [diff] |
docs(mango): match description of `$mod` with reality The remainder argument for the `$mod` operator can be zero, while its documentation suggests otherwise. It actually covers a very realistic use case where divisibility is expressed. Neither related restrictions could be identified in the sources [1] nor MongoDB forbids this [2]. Tests also seem to exercise this specific case [3]. Thanks @iilyak for checking on these. [1] https://github.com/apache/couchdb/blob/adf17140e81d0b74f2b2ecdea48fc4f702832eaf/src/mango/src/mango_selector.erl#L512:L513 [2] https://www.mongodb.com/docs/manual/reference/operator/query/mod/ [3] https://github.com/apache/couchdb/blob/0059b8f90e58e10b199a4b768a06a762d12a30d3/src/mango/test/03-operator-test.py#L58