Skip to main content

In which database CQRS Command performs a Query?

I read the discussion Should CQRS Command perform a Query?

But I don't understand in which database the query is performed, because I have two distinct databases (one for read and one for command).

If I need to take the customer info, I need to read from the Write Database? Is this way correct?
I think yes because if I read from the Read Database, I need to inject the reference to ReadModel and ReadDatabase and I loose the SEGREGATION, right?