Query calls f(ctx, q).
(ctx context.Context, q ent.Query)
| 412 | |
| 413 | // Query calls f(ctx, q). |
| 414 | func (f ShareFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error) { |
| 415 | if q, ok := q.(*ent.ShareQuery); ok { |
| 416 | return f(ctx, q) |
| 417 | } |
| 418 | return nil, fmt.Errorf("unexpected query type %T. expect *ent.ShareQuery", q) |
| 419 | } |
| 420 | |
| 421 | // The TraverseShare type is an adapter to allow the use of ordinary function as Traverser. |
| 422 | type TraverseShare func(context.Context, *ent.ShareQuery) error |
nothing calls this directly
no outgoing calls
no test coverage detected