You can place the partial_fields
directive anywhere in your query, I tested successfully with it both before and after the query
node. However, your formatting for the excluded fields value is incorrect. Your exclude fields value needs to be an array. Try this instead...
"partial_fields": {
"partial1": {
"exclude": ["xmz_Data"]
}
},