jaystack / odata-v4-parser

OData v4 parser
38 stars 41 forks source link

Can't provide metadata to correctly parse an odata filter clause #13

Open Vinss85 opened 6 years ago

Vinss85 commented 6 years ago

Hi, I'm using 'odata-v4-parser' as a library but i'm missing the possibility to provide a valid metadata context so that when createQuery or createFilter takes place, it could handle nested Odata indentifier correctly.

E.g: 'TypeA/RelatedTypeB/PropertyOfB eq 12) and (TypeA/PropertyOfA eq \'someValue\')'

It seemed to me that providing a metadataContext, build with the ServiceMetadata, could do the trick but either I did not create a proper metadata document or I did not understand how to pass it. Is there anything I could do? Do you have any suggestions on how I could achieve this goal?