ember-cli-mirage-graphql
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "ember-cli-mirage-graphql", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A library for mocking GraphQL with Ember CLI Mirage", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,2 +7,6 @@ # Mock GraphQL with Ember CLI Mirage | ||
## Note | ||
This addon is very early in its development and the code currently supports limited use cases. If you would like to contribute, don't be afraid to trample any existing code. It's quite trampleable. | ||
## Installation | ||
@@ -101,4 +105,7 @@ | ||
mutations: { | ||
updatePerson: (people, { id, personAttributes }) => | ||
[ people.update(id, personAttributes) ] | ||
updatePerson: (people, vars, db) => { | ||
let { id, personAttributes } = vars; | ||
return [ people.update(id, personAttributes) ]; | ||
} | ||
}, | ||
@@ -105,0 +112,0 @@ /* |
267489
140