-
Notifications
You must be signed in to change notification settings - Fork 35
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
@odata properties missing #234
Comments
The msgraph-typescript-typings contains types representing the objects or entities and not the odata response. const res = await client.api(`/me/drive/root:/${ExcelFilename}:/workbook/worksheets`).get();
const worksheets = res.value as WorkbookWorksheet[];
const response = await client.api(`/me/`).get();
const user = response as User; Please let me know if you have any more questions. |
@nikithauc in my case using const appRoleAssignments = await client
.api(`/servicePrincipals/${SERVICE_PRINCIPAL_ID}/appRoleAssignedTo`)
.select("id")
.select("principalId")
.select("principalDisplayName")
.select("principalType")
.select("resourceId")
.select("resourceDisplayName")
.select("appRoleId")
.get()
return appRoleAssignments as AppRoleAssignment I don't receive the can you elaborate why is this the case? |
Alright I just noticed what's my actual response is :) const client = getAuthenticatedClient(accessToken)
const response = await client
.api(`/servicePrincipals/${SERVICE_PRINCIPAL_ID}/appRoleAssignedTo`)
.select("id")
.select("principalId")
.select("principalDisplayName")
.select("principalType")
.select("resourceId")
.select("resourceDisplayName")
.select("appRoleId")
.get()
const appRoleAssignments = response.value as AppRoleAssignment[]
return appRoleAssignments |
@nikithauc (bump) |
I've recently started using these typing and am running into some issues as it appears none of the types/interfaces contains any of the
@odata.*
properties. The two I've ran into are@odata.context
and@odatda.type
AB#8340
The text was updated successfully, but these errors were encountered: