Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request without returning parameters #31

Open
rinatsolmano opened this issue Aug 20, 2019 · 1 comment · May be fixed by #37
Open

Request without returning parameters #31

rinatsolmano opened this issue Aug 20, 2019 · 1 comment · May be fixed by #37

Comments

@rinatsolmano
Copy link

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!

@rudy-on-rails
Copy link

rudy-on-rails commented Aug 20, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants