AlecAivazis / graphql-over-kafka

A framework for building event-driven microservice applications in python
MIT License
19 stars 3 forks source link

Handle more than one nested object in mutation result #101

Open AlecAivazis opened 8 years ago

AlecAivazis commented 8 years ago

Right now, if there is an object type in the result of a mutation, it can only be there on it's own to get any kind of result. I'd like to support multiple objects as well as objects alongside strings.

Main problem here is how to handle conflicts in strings, and leaves in the objects. One option is to provide them all with the corresponding result from the service. For example:

['name', {'foo': 'name'}] would get resolved to ['bob', {'foo': 'bob'}] if the remote data returned with {'name': 'bob'}