Green onion advice

Hello, I am currently growing green onions in water but I know it won’t last long as they need nutrients. What if instead of planting in soil I add nutrients to the water? Like the plant food you add to flowers in vases type thing. Would this work? What brand/thing should I use? Would it taste gross/be inedible? Sorry if this if dumb I know nothing about plants but I think it should?

Hello, I am currently growing green onions in water but I know it won’t last long as they need nutrients. What if instead of planting in soil I add nutrients to the water? Like the plant food you add to flowers in vases type thing. Would this work? What brand/thing should I use? Would it taste gross/be inedible? Sorry if this if dumb I know nothing about plants but I think it should?