QueryResolverFunc is an adapter that allows to build a QueryResolver from a function. Based on the http.HandlerFunc pattern.
func(ctx context.Context, query schema.Query) *Resolved
| 38 | // QueryResolverFunc is an adapter that allows to build a QueryResolver from |
| 39 | // a function. Based on the http.HandlerFunc pattern. |
| 40 | type QueryResolverFunc func(ctx context.Context, query schema.Query) *Resolved |
| 41 | |
| 42 | // Resolve calls qr(ctx, query) |
| 43 | func (qr QueryResolverFunc) Resolve(ctx context.Context, query schema.Query) *Resolved { |
no outgoing calls
no test coverage detected