Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

SyntaxError when trying to order by child #51

Open
ghost opened this issue Nov 30, 2017 · 0 comments
Open

SyntaxError when trying to order by child #51

ghost opened this issue Nov 30, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 30, 2017

Using an order by where I'd like to sort on a child will result in a syntax error.

For example:
?$orderby=Rating,Category/Name desc

Will result in:

{ [SyntaxError: Expected " ", "&", ",", "." or [a-zA-Z0-9\-_] but "/" found.]
  name: 'SyntaxError',
  expected: [ '" "', '"&"', '","', '"."', '[a-zA-Z0-9\\-_]' ],
  found: '/',
  message: 'Expected " ", "&", ",", "." or [a-zA-Z0-9\\-_] but "/" found.',
  offset: 33,
  line: 1,
  column: 34 }

It's however specified as being valid according to these docs:
http://www.odata.org/documentation/odata-version-2-0/uri-conventions/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants