FirstIDX is like FirstID, but panics if an error occurs.
(ctx context.Context)
| 148 | |
| 149 | // FirstIDX is like FirstID, but panics if an error occurs. |
| 150 | func (_q *UserQuery) FirstIDX(ctx context.Context) uuid.UUID { |
| 151 | id, err := _q.FirstID(ctx) |
| 152 | if err != nil && !IsNotFound(err) { |
| 153 | panic(err) |
| 154 | } |
| 155 | return id |
| 156 | } |
| 157 | |
| 158 | // Only returns a single User entity found by the query, ensuring it only returns one. |
| 159 | // Returns a *NotSingularError when more than one User entity is found. |
nothing calls this directly
no test coverage detected