Hi, Thank you for your response!
Your link definitely works, but I was actually looking to get this response as shown in the documentation. The way it was shown in the documentation is that you can make a query directly on the service to get this response and not necessarily on the layer itself.