Apologies if this question already exists, i have searched for two days now. I am trying to list all files from google drive root folder which have not been trashed using javasc
I had a similar problem, solved by putting the q parameter into the initial request as well:
var initialRequest = gapi.client.drive.children.list({ 'folderId' : folderId, 'q' : 'trashed = false' });