java – generate avro schema from graphql mutation
I’m trying to migrate our endpoints from REST to graphQL. For now, we’re starting small with mutations only. we’re also changing from JSON to avro, which requires schema. I’m wondering if it’s possible to build avro schema dynamically from whatever graphql mutation structure sent by client, even if the payload is complex like array of nested objects, etc.
Does it have to be graphql -> POJO -> avro? current endpoint accept free form object and we parse as json object tree, so, we can handle any complex nested object. is there a way to do this with graphQL and output as avro?
Thanks
Read more here: Source link