Hi! I’m trying to enable a workflow that allows a type to accept arbitrary fields.
Basically my type is an object with unknowable fields, that I want to resolve as strings. I’ll also want to query on these fields. My understanding is that for this to be possible at all I need to update the schema to define the field as soon as I know what the field is.
So far, I’ve gotten to the point where I accept an object, write a new
.gql schema that defines each field in that object, the query for adding the index for each field, and imports that via merge to the import endpoint. It works great! Fantastic!
BUT apparently this is how we also delete fields. So each schema update is blowing away the type def that has my other fields. Not ideal, not great!
So; how do I merge a single new field or a single new query into my GraphQL schema without deleting any extant fields?