You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I prefer exists, because we might introduce new types for which NULL is a possible value. We may want to distinguish between the existence of a property, and its value being NULL. For example, in Python, these are different: { "question": None, answer: 42 } and { answer: 42 }.
Is there an existing proposal for this?
Is your feature request related to a problem?
The expression language currently does not provide a clear way to check for the existence of a property.
Let's assume I have a queue with two types of messages.
Messages of type A have the following properties:
Messages of type B have the following properties:
If I want to filter for messages that contain a
radius
field in a subscription, I can currently recur to the following workaround expressions:however my intent to check for existence is not clear.
Describe the solution you'd like
I would love if the expression language allowed me to check for existence of fields explicitly. This can be done by either checking if a field:
for the existence check.
and
for the missing property check.
Alternatively an operator for exists() can be introduced. This alternative would require a unary negation operator.
Alternatives you considered
No response
The text was updated successfully, but these errors were encountered: