julienvincent / modelizr

Generate GraphQL queries from models that can be mocked and normalized.
http://julienvincent.github.io/modelizr
176 stars 6 forks source link

Fix nested object parameterization #9

Closed nikolubbe closed 8 years ago

nikolubbe commented 8 years ago

When you have a nested object as a parameter: model('FetchUser').params({user: {first_name: "Jon", last_name: "Snow"}}) Results in FetchUser(user: {"first_name":"Jon", "last_name": "Snow"}) Instead of FetchUser(user: {first_name:"Jon", last_name: "Snow"}) (i.e. no quotes on keys)

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.7%) to 51.481% when pulling 6ae23949af65bc6029435ca097c576b5e62adc9c on onedayonly:master into f6f923ab18b898ee8da663938a697859cd7fad14 on julienvincent:master.

julienvincent commented 8 years ago

Thanks 👍