aPureBase / KGraphQL

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

Add more "prepare" overloads #84

Closed jeggy closed 4 years ago

jeggy commented 4 years ago

Currently the prepare function within DataLoaderPropertyDSL only has support up to 1 argument. We want to add support for multiple just as we have in the other DSLs.

I would like to be able to do something like this:

dataProperty<Int, ContactValue?>("mainContact") {
    prepare { current, ctx: Context, type: ContactType ->
        ...
    }
}