pass exclude and include query parameters to toArray()