-
Notifications
You must be signed in to change notification settings - Fork 432
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
Question: Multiple conditions in q.any() #354
Comments
I've never used singleValueExtendedProperty. Can you share some code on the Message override? At the moment
Great that you looked at the source!! |
Disclaimer: I took this "hack" to solve my problem from some deep-with-zero-upvotes-and-downvotes SO answers. Not sure it is 100% correct and the only way to solve my problem but still it's quite clear and works. The class is quite simple - just adds new parameter according to singleValueExtendedProperty docs:
|
I'd be happy to create a PR to implement this class. Where is CUSTOM_MESSAGE_ID_PROPERTY set @cepbuch ? |
I am trying to assign some custom id to message at the sending time (as message/send doesn't return anything as we know)
So, I am sending singleValueExtendedProperty
{'id': property_id, 'value': property_value}
when creating the message (overridden Message class) and now I want to find this message by mailbox.get_messages.Such filter requires
/any(a: a/id eq {id} and a/value eq {value})
to be passed as filter.returns only
/any(a: a/id eq {id})
while I want to add another condition to any() as I said above.This works, but of course its ugly:
Is there a way of doing this with built-in tools?
P.S. Thanks for the awesome library! Sometimes looking at the source code is way more helpful than the official outlook docs
The text was updated successfully, but these errors were encountered: