Thanks Nikhil for reply,
In my case metadata does not come, but i have done this using class field and it is working but to check this folders have sub-folders i am sending separate api calls for each folders and checking if it contains any folder or not which is time consuming, i need a way to send...