FirstX is like First, but panics if an error occurs.
(ctx context.Context)
| 150 | |
| 151 | // FirstX is like First, but panics if an error occurs. |
| 152 | func (nvq *NodeVersionQuery) FirstX(ctx context.Context) *NodeVersion { |
| 153 | node, err := nvq.First(ctx) |
| 154 | if err != nil && !IsNotFound(err) { |
| 155 | panic(err) |
| 156 | } |
| 157 | return node |
| 158 | } |
| 159 | |
| 160 | // FirstID returns the first NodeVersion ID from the query. |
| 161 | // Returns a *NotFoundError when no NodeVersion ID was found. |
nothing calls this directly
no test coverage detected