(ctx context.Context, req ResolverReq)
| 22 | } |
| 23 | |
| 24 | func (b *openapiBridge) Resolve(ctx context.Context, req ResolverReq) ([]byte, error) { |
| 25 | if b.topLevel { |
| 26 | return b.callTopLevel(ctx, req.Sel) |
| 27 | } |
| 28 | params := openapi.CallParams{} |
| 29 | if b.pathName != "" { |
| 30 | params.PathValues = map[string]string{b.pathName: req.ID} |
| 31 | } |
| 32 | return b.caller.Call(ctx, params) |
| 33 | } |
| 34 | |
| 35 | func (b *openapiBridge) callTopLevel(ctx context.Context, sel *qcode.Select) ([]byte, error) { |
| 36 | if sel == nil { |