The matched text.
(ctx context.Context)
| 14134 | |
| 14135 | // The matched text. |
| 14136 | func (r *SearchSubmatch) Text(ctx context.Context) (string, error) { |
| 14137 | if r.text != nil { |
| 14138 | return *r.text, nil |
| 14139 | } |
| 14140 | q := r.query.Select("text") |
| 14141 | |
| 14142 | var response string |
| 14143 | |
| 14144 | q = q.Bind(&response) |
| 14145 | return response, q.Execute(ctx) |
| 14146 | } |
| 14147 | |
| 14148 | // AsNode returns this SearchSubmatch as a Node. |
| 14149 | // This is a local type conversion — no GraphQL call. |
no test coverage detected