graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.87k stars 839 forks source link

Is it possible to resolve and filter a query based on a mix of one to many arguments? #571

Open DAT4 opened 3 years ago

DAT4 commented 3 years ago

Hi, guys.

I tried to see if there was some example of this in the examples directory, but I couldn't find anything like this, and I have no idea how the implementation of something like this should be done.

I already asked a similar/same question on stackoverflow, and I didn't get any response, So I wanted to ask you guys since you are the source of the tools I am using :+1:

Thanks you and best regards Martin Mårtensson

bhoriuchi commented 3 years ago

an example of what you are trying to do would be helpful. At a high level graphql uses resolves which can take arguments and return results. A query response is itself a bunch of resolver outputs stitched together. So its really up to you on what you filter at the resolver level