Soontao / odata-v4-parser

OData(V4) URI Parser
MIT License
17 stars 4 forks source link

Decode uri to object #275

Open masaanli opened 1 year ago

masaanli commented 1 year ago

System Environment

Question Description

Is it possible to decode a oData uri to a object?

How?

like { property1: [{op: eq, value: 'xxx'} ], property2: [{op: eq, value: 'xxx'} ] }

add some question description here

Soontao commented 1 year ago

Hi @masaanli

till now, no such feature, but I'm also thinking this, yes, good idea because traverse AST sometimes a little bit hard to use.

maybe, reference https://github.com/Soontao/odata-v4-parser/blob/main/test/visitor.spec.ts to build an Traverser, map AST to object.

back to you later.

webJose commented 1 year ago

Hello. I'm in the hunt for an OData parser and builder. I guess, from what I read here, that this "parser" is no parser. I guess this is a builder only?