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

Use $expand when transforming linq queries into rest calls for requested expandable properties #57

Closed
1 task done
jansenbe opened this issue Jun 3, 2020 · 1 comment
Assignees

Comments

@jansenbe
Copy link
Contributor

jansenbe commented Jun 3, 2020

Category

  • Feature request

Describe the feature

var sitePages = context.Web.Lists.GetByTitle("Site Pages", p => p.ContentTypes);

Generated query = https://bertonline.sharepoint.com/sites/prov-1/_api/web/lists?$select=ContentTypes&$filter=Title%20eq%20%27Site+Pages%27&$top=1 and this one does not return the content types.

using https://bertonline.sharepoint.com/sites/prov-1/_api/web/lists?$expand=ContentTypes&$filter=Title%20eq%20%27Site+Pages%27&$top=1 does return the content types.

Think this requires updates in how we translate a linq query into a REST/Graph query.

@jansenbe jansenbe assigned jansenbe and unassigned PaoloPia Jun 26, 2020
jansenbe added a commit that referenced this issue Jun 26, 2020
…ted expandable properties #57 + partial fix for Graph linq queries on Lists do not seem to support $filter #68
@jansenbe
Copy link
Contributor Author

Done

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