msgraph-sdk-javascript icon indicating copy to clipboard operation
msgraph-sdk-javascript copied to clipboard

OData query options without $.

Open nikithauc opened this issue 3 years ago • 1 comments

On the beta endpoint, the $ prefix is optional. For example, instead of $filter, you can use filter. On the v1 endpoint, the $ prefix is optional for only a subset of APIs - Source.

The JS-client client currently considers & <$query option> as two different query param keys. Should this be changed? Or do we wait till the service consistently allows a query option with/without $ for all endpoints? Discussion AB#7548

nikithauc avatar Oct 08 '20 23:10 nikithauc

I'm not sure the AGS team has been actively working on that recently or plans to. My opinion on the matter is that the SDK should not get "in the way" of people. If they want to work with select (without $), and the service accepts it (even partially), it should just work. That's also a way to future proof our SDK for the day the change rolls out consistently.

baywet avatar Oct 09 '20 12:10 baywet

closing older issue

ddyett avatar Jul 25 '23 05:07 ddyett