Closed csansoon closed 2 weeks ago
Latest commit: 9a76c4883b4fec77bce3b85e9b43dc3e604aaed5
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Describe your changes
Compiler did not properly handle object properties. Before this commit, you could not:
?.
)Invoke object properties as methods
Some variable types can contain functions that may be useful in the query compilation run-time. A clear example is Dates, where a Date can be passed to a query as a param, and we may want to run date-related methods.
Modify object properties as methods
You can now also modify the value from object properties such as arrays and hashes.
Allow optional chaining operator (
?.
)The optional chaining operator allows you to read the value of a property located deep within a chain of connected objects without having to expressly validate that each reference in the chain is valid.
Checklist before requesting a review