googleapis / googleapis/google-api-nodejs-client
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object
- Dominant language
- TypeScript
- Stars
- 12.2k
- Forks
- 2k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 24
Description
Hello!
I'm trying to get a list of folders in a specific folder, using the googleapis library, it gives an error. (typescript)
const folderId:string = "1U4Zucpia-a3S2fwgBJC1omsR4-15KMm2";
const search_query: string = `${folderId} in parents and mimeType contains 'application/vnd.google-apps.folder' and trashed = false`;
const listParams: drive_v3.Params$Resource$Files$List = { q:search_query };
const res: GaxiosResponse = await gd.files.list(listParams);
const listResults: drive_v3.Schema$FileList = res.data;
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object


Contributor guide
Assessment
This issue has not been assessed yet.