Skip to content

[OData Handler] Add default filter param of ID for all queries on collections when talking to Microsoft Graph #787

@glennblock

Description

@glennblock

Every entity in OData carries a unique Entity ID. In Graph we also have a default id property on every entity. When querying against a collection, the id can be used in the url as part of the path. Currently there is no way to filter on the id other than using the Filter property on QueryOptions. Without having id first class, I cannot currently create a request to with the following urls

https://graph.microsoft.com/v1.0/me/drive/items/F8B2FD72406FB218!6801/versions

or

https://graph.microsoft.com/v1.0/me/drive/items('F8B2FD72406FB218!6801')/versions

If id is added as a first class param and implemented such that the id is used in the path (using either of the two approaches) then I could use the following GraphQL query to get that url

{
  me {
   drive {
     items(id:"F8B2FD72406FB218!6801") 
     {
       versions {
         id
       }
     }
    }
  }
}

Adding this behavior would enhance overall drill down with GraphQL on OData feeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions