ExpediaGroup / graphql-kotlin

Libraries for running GraphQL in Kotlin

Home Page:https://opensource.expediagroup.com/graphql-kotlin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make `src/main/resources` configurable for GraphQL clients

mainrs opened this issue · comments

commented

When including the library in a multiplatform project, graphql-kotlin still tries to discover .graphql files from the src/main/resources folder. A more common scenario is to place the files under src/commonMain/resources, since one might want to generate the bindings for all platforms.

A (temporary) solution until proper multiplatform support exists would be to make the path configurable.

commented

Ahhh, the configuration already exists! It's called queryFolder. Sorry!