I have this type “Thing” that have dozen of “fields” (field1, field2, ...). How do I do an update query with dynamic fields names? Is it bad practice? If yes, what is the alternative to keep the code dry?
mutation updateThing($thingId: ID!, $value:String) {
updateThing (
id: $tokenId
field1: $value // make field1 a variable?
) { id }
}