Get varRefs of whole container

Is there a way to get the variable refs of the whole container?

julia> @variable(model, u[1:2])
2-element Vector{VariableRef}:
 u[1]
 u[2]

julia> variable_by_name(model, "u[2]")
u[2]

How do I get all u as Vector{VariableRef}?

If you mean a method by a string, I assume that doesn’t exist. Just use u?
Why do you want this?

No just "u" does not work, it tried that first.

I didn’t mean "u", I meant u the reference.

And actually you can call u out directly via model[:u] or model[Symbol("u")].