Example how to use graphql mutations with variable parameters

Anyone could explain how to use mutations as described in docs:

But by passing variables instead of hardcoding values in query itself?