graphjin icon indicating copy to clipboard operation
graphjin copied to clipboard

It is just a question. How to make custom business logic in go?

Open gelleson opened this issue 3 years ago • 3 comments

I have read wiki but I didn't find some examples with custom logic in go.

gelleson avatar Jun 24 '22 12:06 gelleson

If you're using GraphQL as a library you can implement custom logic before or after your call to graphjin.GraphQL

dosco avatar Jun 25 '22 07:06 dosco

Got it. But can I extend GraphQL with new resolver built in Golang?

gelleson avatar Jun 25 '22 12:06 gelleson

Here's an example of a custom Redis resolver. https://pkg.go.dev/github.com/dosco/graphjin/core#Resolver

dosco avatar Jul 12 '22 06:07 dosco