Performs a filter with the OData 'all' keyword on the collection For example: q.any(collection='email_addresses', attribute='address', operation='eq', word='george@best.com') will transform to a filter such as: emailAddresses/all(a:a/address eq 'george@bes
(self, *, collection, word, attribute=None, func=None, operation=None, negation=False)
| 1213 | |
| 1214 | @fluent |
| 1215 | def all(self, *, collection, word, attribute=None, func=None, operation=None, negation=False): |
| 1216 | """ Performs a filter with the OData 'all' keyword on the collection |
| 1217 | |
| 1218 | For example: |
| 1219 | q.any(collection='email_addresses', attribute='address', |
| 1220 | operation='eq', word='george@best.com') |
| 1221 | |
| 1222 | will transform to a filter such as: |
| 1223 | |
| 1224 | emailAddresses/all(a:a/address eq 'george@best.com') |
| 1225 | |
| 1226 | :param str collection: the collection to apply the any keyword on |
| 1227 | :param str word: the word to check |
| 1228 | :param str attribute: the attribute of the collection to check |
| 1229 | :param str func: the logical function to apply to the attribute |
| 1230 | inside the collection |
| 1231 | :param str operation: the logical operation to apply to the |
| 1232 | attribute inside the collection |
| 1233 | :param bool negation: negate the funcion or operation inside the iterable |
| 1234 | :rtype: Query |
| 1235 | """ |
| 1236 | |
| 1237 | return self.iterable('all', collection=collection, word=word, |
| 1238 | attribute=attribute, func=func, operation=operation, |
| 1239 | negation=negation) |
| 1240 | |
| 1241 | @fluent |
| 1242 | def order_by(self, attribute=None, *, ascending=True): |