Let Selenium driver wait till all GraphQL requests are finished

I’m writing some Selenium tests (in c#) for React app.

I need to let (Chrome)Driver wait until all GraphQL requests are finished. I have method that waits till all jQuery requests are finished:

WebDriverWait.Until(d => (bool)((IJavaScriptExecutor)Driver).ExecuteScript("return window.jQuery != undefined && jQuery.active == 0"))

but I need to rewrite this query for GraphQL requests.

Thank you in advance.