Open duckblaster opened 6 months ago
You can use Select and Expand which accept string
graphServiceClient
.Me
.Request()
.Select("id,mail,department,displayName")
.Expand("memberOf($select=id,displayName)")
Yes, I used that as a workaround, I just thought it would be great to have the option
Is your feature request related to a problem? Please describe the problem.
I am trying to select only a couple of properties from an expanded collection using LINQ, but
.Expand()
doesn't allow using.Select()
on sub properties.Describe the solution you'd like.
Additional context?
The query that I an trying to generate, that I have verified works in graph explorer:
https://graph.microsoft.com/v1.0/me?$select=id,mail,department,displayName&$expand=memberOf($select=id,displayName)