Postman provides us with lots of dynamic variables that we can make use of to generate any test data.The list provided is quite impressive and is very useful.
To use dynamic variables in pre-request or test scripts, you need to use pm.variables.replaceIn(), e.g. pm.variables.replaceIn(‘{{$randomFirstName}}’).
In the JSON request, you can make use of the dynamic variable in the following way.

If you want to make use of the dynamic variable in the Graphql request , you can follow below image.

Code for the same is below:
{
"employee": {
"firstName": "{{$randomFirstName}}",
"lastName": "{{$randomLastName}}",
"middleName": "QA",
"employementStatus":"Terminated"
}
}
Graphql Mutation Body
mutation($Twitteremployee:EmployeeParam ) {
Employee(employee:$Twitteremployee) {
id
firstName
lastName
middleName
employmentStatus
}
}