vertexbz / graphql-introspection-filtering

Filter graphql schema introspection result to hide restricted fields and types
MIT License
22 stars 3 forks source link

Async support #3

Open trickleup opened 4 years ago

trickleup commented 4 years ago

Hi,

I'm in a situation where I need to make calls to async functions from the visitFieldIntrospection method, for a given directive, and I'm noticing that when I return a Promise<boolean> from the method, it does not filter the introspection query the way I intended.

Is there an existing workaround for this, or any plans to add support for handling promises, like this?

Thanks for a great library!