* Generates a new record using factory, sends a GraphQL mutation to store it. * * ```js * // create a user * I.mutateData('createUser'); * // create user with defined email * // and receive it when inside async function * const user = await I.mutateData('createUser', { email: 'u
(operation, params)
| 215 | * @param {*} params predefined parameters |
| 216 | */ |
| 217 | mutateData(operation, params) { |
| 218 | const variables = this._createItem(operation, params) |
| 219 | this.debug(`Creating ${operation} ${JSON.stringify(variables)}`) |
| 220 | return this._requestCreate(operation, variables) |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Generates bunch of records and sends multiple GraphQL mutation requests to store them. |
no test coverage detected