Skip to content
This repository was archived by the owner on May 10, 2018. It is now read-only.

Support the special single element version of lists #10

Closed
sorenbs opened this issue Dec 29, 2017 · 1 comment
Closed

Support the special single element version of lists #10

sorenbs opened this issue Dec 29, 2017 · 1 comment

Comments

@sorenbs
Copy link

sorenbs commented Dec 29, 2017

GraphQL support single element lists to be written as if they were an object. Ie, these are equivalent:

data: { progress: { create: [{ message }] } }
data: { progress: { create: { message } } }

It would be great if the generated binding could support this as well

@kbrandwijk
Copy link
Contributor

@sorenbs As far as I can see, this only applies to input types, right?

kbrandwijk added a commit that referenced this issue Dec 29, 2017
The GraphQL spec allows you to pass in a single value for any input field that is defined as an
Array. The type definitions are updated to accomodate this.

Closes #10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants