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
We have a use case where it makes sense to draw aliases from an array or strings (or predefined variables) instead of specifying them directly as part of the SQL
Describe the solution
It would be great to have a function similar to type::field that can take a string as parameter and convert it to an alias. We can also re-use the alias in other parts of the larger query
Alternative methods
Atm we are pre-processing the query in a script but it would be amazing if we could achieve the same using surrealdb functions.
Is your feature request related to a problem?
We have a use case where it makes sense to draw aliases from an array or strings (or predefined variables) instead of specifying them directly as part of the SQL
Describe the solution
It would be great to have a function similar to
type::field
that can take a string as parameter and convert it to an alias. We can also re-use the alias in other parts of the larger queryAlternative methods
Atm we are pre-processing the query in a script but it would be amazing if we could achieve the same using surrealdb functions.
SurrealDB version
surreal 2.0.4 for macos on aarch64
Contact Details
rishi@verified-global.com
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: