Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS error on $select when $orderBy added #109

Open
romangobrey opened this issue Aug 28, 2022 · 1 comment
Open

TS error on $select when $orderBy added #109

romangobrey opened this issue Aug 28, 2022 · 1 comment

Comments

@romangobrey
Copy link

Hi,

What's wrong in this simple query?
buildQuery({ select: ['name1', 'name2'], top: 5, orderBy: 'createdon' });

For error see attached pic
Screenshot 2022-08-28 181701

Thank you!

@sitek94
Copy link
Collaborator

sitek94 commented Mar 8, 2023

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.

example from screenshot

Screenshot 2023-03-08 at 16 44 59

I'm going to open a PR with a possible fix.

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

No branches or pull requests

2 participants