microsoft-graph-devx-api icon indicating copy to clipboard operation
microsoft-graph-devx-api copied to clipboard

Example 4 (OData cast) Java snippet wrong

Open enqueue opened this issue 3 years ago • 1 comments

The sample Java code snippet for example 4 does not correspond with the actual SDK use (SDK version 5.39.0).

Existing sample snippet:

UserCollectionPage user = graphClient.groups("{id}").members().microsoft.graph.user()

I think that the Graph SDK should be used like this to achieve the desired effect.

UserCollectionPage user = graphClient.groups("{id}").membersAsUser()

Please correct me if I am wrong, though. Then I am probably using the wrong version of the SDK library.

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

enqueue avatar Nov 04 '22 08:11 enqueue

This issue has been assigned to you, @psaffaie. You are listed as the author for the document associated with this issue. If this is not correct, please take the following actions.

  • Assign this issue to the correct author
  • Create a pull request to update the author field in the YAML front-matter of this topic

github-actions[bot] avatar Nov 04 '22 08:11 github-actions[bot]