扩展查询以获取嵌套子级

时间:2018-10-08 12:26:34

标签: onedrive

我们可以在一个驱动器中使用展开查询参数来展开文件夹的所有子项吗?

我有一个像这样的json

{
    "id": "id",
    "lastModifiedDateTime": "2018-10-08T06:38:28.707Z",
    "name": "Documents",
    "size": 11100,
    "createdBy": {
        "application": {
            "displayName": "Office.com",
            "id": "4804ec1e"
        },
        "user": {
            "displayName":name",
            "id": "id"
        }
    },
    "lastModifiedBy": {
        "application": {
            "displayName": "Office.com",
            "id": "id"
        },
        "user": {
            "displayName": "name",
            "id": "id"
        }
    },
    "parentReference": {
        "driveId": "id",
        "driveType": "personal",
        "path": "/drive/root:"
    },
    "fileSystemInfo": {
        "createdDateTime": "2018-04-30T09:21:25.673Z",
        "lastModifiedDateTime": "2018-04-30T09:21:25.673Z"
    },
    "folder": {
        "childCount": 1,
        "view": {
            "viewType": "thumbnails",
            "sortBy": "name",
            "sortOrder": "ascending"
        }
    },
    "specialFolder": {
        "name": "documents"
    }
}

使用Odata查询参数$ expand可以获取嵌套文件夹吗?

样本查询: https://graph.microsoft.com/v1.0/me/drive/root?expand=children(select=id,name)

我喜欢扩大嵌套的孩子们

我尝试过类似的事情

https://graph.microsoft.com/v1.0/me/drive/root/children?list-item

0 个答案:

没有答案