I understand that the /children endpoint does not support the $filter parameter.
htps://docs.microsoft.com/en-us/answers/questions/501232/microsoft-graph-drive-filter-children-folder-file.html
Is there any way to get folder and file separately ?
From the application's performance point of view, it is crucial that we can get only files excluding folders.
It is possible to get only folder like this (but not supported).
GET https://graph.microsoft.com/v1.0/drives/{drive ID}/root:{folder path}:/children?filter=folder%20ne%20null
Getting file only doesn't work.
GET https://graph.microsoft.com/v1.0/drives/{drive ID}/root:{folder path}:/children?filter=file%20ne%20null