Skip to content
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

eq function returns escaped strings. #7

Open
AlgorithmEnigma opened this issue Mar 8, 2023 · 0 comments
Open

eq function returns escaped strings. #7

AlgorithmEnigma opened this issue Mar 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AlgorithmEnigma
Copy link
Contributor

Describe the bug
The eq() function when passed a string returns an escaped string which prevents the usage of raw queries without using a provided method.

Example

eq('math::floor(12.133)')

output: [Symbol(Query Raw)]: "= \"math::floor(12.133)\""

Expected behavior
I expect the strings not to be escaped to allow you to use that without having to either use

eq(raw('math::floor(12.133)')

or

raw('= math::floor(12.133)')

I feel both of those options are are less clean to write. A change would also allow the use of any of the SurrealQL functions without having to rely on us having a helper method.

Environment:

  • OS: Linux
  • Version ^0.6.6
  • Node Version v16.19.0
@AlgorithmEnigma AlgorithmEnigma added the bug Something isn't working label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant