aPureBase / KGraphQL

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

Use operationName if provided by GraphQLRequest (fixes #81) #203

Closed b-eyselein closed 1 year ago

b-eyselein commented 1 year ago

Currently KGraphQL can't handle GraphQL documents with more than one operation unless the operation name is provided as a variable, but usually the operation name - if needed - is provided as a part of the request (see kgraphl-ktor for example).

These changes incorporate this behavior and pass the requested operation name through to the executor.