The Logic App connector may not address that scenario. You will likely need to use the built-in HTTP action to call the REST API. https://learn.microsoft.com/en-us/graph/aad-advanced-queries
Look for examples if you haven't used this method. The HTTP action will always be followed by a JSON parser.