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

#Feature add fromString() function that creates an ODataQuery object #22

Open
alexbu92 opened this issue Nov 4, 2022 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@alexbu92
Copy link

alexbu92 commented Nov 4, 2022

There's no way currently to do the opposite of the toString() method, which is parse a string generated by the toString method and recreate an ODataQuery object.

@rosostolato
Copy link
Owner

I'm curious, what is the use case for it?

@alexbu92
Copy link
Author

alexbu92 commented Nov 4, 2022

I'm curious, what is the use case for it?

I'm making an odata-elasticsearch adapter. Query gets built on the client, converted to string and sent to server, server then needs to parse it back to OData and then I would have a service that converts an OdataQuery to an elasticsearch query.

@rosostolato
Copy link
Owner

Got it, for that we would need a great regex parser. Can you help us developing this and push a PR?

@rosostolato rosostolato added the enhancement New feature or request label Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants