kraph icon indicating copy to clipboard operation
kraph copied to clipboard

Request without returning parameters

Open rinatsolmano opened this issue 6 years ago • 1 comments

Hello, guys, thanks for you work. Could you please help me to find out how to build following query with kraph:

query {
    vendors(dc: 5820)
}

Here is part of my schema:

type Query {
    vendors(dc: Int!): [Int]
}

I've already tried to execute this code:

Kraph {
    query {
        func(name = "vendors", args = mapOf("dc" to 5820)) {}
    }
}

But it fails with exception: me.lazmaid.kraph.NoFieldsInSelectionSetException: No field elements inside "vendors" block

Thanks!

rinatsolmano avatar Aug 20 '19 20:08 rinatsolmano

:+1: to this request. Not all mutations, for instance, would require a selection of fields to be provided.

rudy-on-rails avatar Aug 20 '20 15:08 rudy-on-rails