odata-query
odata-query copied to clipboard
TS error on $select when $orderBy added
Hi,
What's wrong in this simple query?
buildQuery({ select: ['name1', 'name2'], top: 5, orderBy: 'createdon' });
For error see attached pic
Thank you!
I encountered the same issue, and it seems that it is related to Select
type.
Currently, if we use only select
we can pass whatever we want.
However, when we also use expand
we cannot select
other properties than those defined in expand
. Here's reproduction.
I'm going to open a PR with a possible fix.