Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Query for multiple mime types (OR-ing)

Following the doc https://developers.google.com/drive/search-parameters on search parameters, I can combine parameters with and. mimeType-s can be tested with =. Can I extract multiple mime types files in one query? No or operator in the doc or if I can use contains for mimeType.

like image 471
demi Avatar asked Feb 15 '23 23:02

demi


1 Answers

I feel it's worth noting that demi's last comment is correct I was able to specify a subset of mimtypes as follows:

(mimeType = 'application/vnd.google-apps.folder' or 
mimeType = 'application/vnd.google-apps.file' or 
mimeType = 'application/vnd.google-apps.spreadsheet')

Hope that helps anyone else looking at this question in the future as it is not clear in the documentation.

like image 62
Luke Chamberlain Avatar answered Mar 28 '23 03:03

Luke Chamberlain