jaystack / odata-v4-parser

OData v4 parser
38 stars 41 forks source link

Expand issue #9

Closed bastienlemaitre closed 6 years ago

bastienlemaitre commented 6 years ago

Hi, when i run this following code :

var parsed = parser.query(
  `$expand=group,user`
);
var queryOptions = parsed.value.options;
var expand = queryOptions.filter(q => q.type == 'Expand');

It miss "user" token, and "group" token is found twice..

image

Thanks

lazarv commented 6 years ago

Thank you @bastienlemaitre for finding this bug. A fixed version is now available on npm. Please run npm update.