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

Typescript Code Generation - Wrong filter parameter syntax #814

Closed
rkodev opened this issue Dec 6, 2021 · 2 comments · Fixed by #1008
Closed

Typescript Code Generation - Wrong filter parameter syntax #814

rkodev opened this issue Dec 6, 2021 · 2 comments · Fixed by #1008
Assignees
Labels
area: snippets-generation Describes a required fix to the snippet generator area: typescript

Comments

@rkodev
Copy link
Contributor

rkodev commented Dec 6, 2021

Describe the bug
Typescript get request Filter parameters are generated with a wrong syntax

Docs Link

let requestParameters = {
	filter : "userConsentRequests/any",
};
const result = async () => {
	await graphServiceClient.identityGovernance.appConsent.appConsentRequestsById("appConsentRequest-id").get(requestParameters);
}
@rkodev rkodev self-assigned this Dec 6, 2021
@rkodev
Copy link
Contributor Author

rkodev commented Dec 6, 2021

@nikithauc are you able to help with getting the expected syntax for typescript syntax that is equivalent to this csharp example

@rkodev rkodev added the area: snippets-generation Describes a required fix to the snippet generator label Dec 6, 2021
@nikithauc
Copy link

@rkodev

filterByCurrentUserWithOn function is present in AppConsentRequestsRequestBuilder.

It looks like we need to use appConsentRequests instead of appConsentRequestsById.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: snippets-generation Describes a required fix to the snippet generator area: typescript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants