OnlyIDX is like OnlyID, but panics if an error occurs.
(ctx context.Context)
| 228 | |
| 229 | // OnlyIDX is like OnlyID, but panics if an error occurs. |
| 230 | func (nvq *NodeVersionQuery) OnlyIDX(ctx context.Context) uuid.UUID { |
| 231 | id, err := nvq.OnlyID(ctx) |
| 232 | if err != nil { |
| 233 | panic(err) |
| 234 | } |
| 235 | return id |
| 236 | } |
| 237 | |
| 238 | // All executes the query and returns a list of NodeVersions. |
| 239 | func (nvq *NodeVersionQuery) All(ctx context.Context) ([]*NodeVersion, error) { |