aPureBase / KGraphQL

Pure Kotlin GraphQL implementation
https://kgraphql.io
MIT License
298 stars 58 forks source link

Support for per request options #89

Closed jeggy closed 4 years ago

jeggy commented 4 years ago

It would be great to have the possibility to switch between executors without restarting the server.

Thinking about something like this:

schema.execute(query, variables, context, ExecuteOptions(executor = DataLoaderPrepared))

So whatever has been provided with the configure block will be the defaults, but if ExecuteOptions.executor has been provided it will use those instead.