-
Notifications
You must be signed in to change notification settings - Fork 163
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
Keypath substitution in queries #7033
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently all keypaths used in queries has to be specified in full and has to match the schema to not give an error. This is a problem for enabling search on dynamic properties, and in general makes it hard to adapt queries to less predictable scenarios.
NSPredicates solves this by allowing you to substitute keypaths using the
%K
identifier:We should allow the same in RQL. Since our substitution syntax is slightly different (using
$<pos>
instead of%@
) we might want to use a simple annotation to signify that this substitution should be interpreted as a keypath (like$<pos>k
).Part of #2978
The text was updated successfully, but these errors were encountered: