CountX is like Count, but panics if an error occurs.
(ctx context.Context)
| 237 | |
| 238 | // CountX is like Count, but panics if an error occurs. |
| 239 | func (gcq *GitCommitQuery) CountX(ctx context.Context) int { |
| 240 | count, err := gcq.Count(ctx) |
| 241 | if err != nil { |
| 242 | panic(err) |
| 243 | } |
| 244 | return count |
| 245 | } |
| 246 | |
| 247 | // Exist returns true if the query has elements in the graph. |
| 248 | func (gcq *GitCommitQuery) Exist(ctx context.Context) (bool, error) { |