customerReset not working properly getting response undefined

customerReset not working properly getting response undefined

9mm-energy-drin
New Member
9 0 0
customerReset(_id_resetToken_password😞 Promise<any> {
    console.log(_id_password_resetToken);
    const id = this.client.variable('id''ID!');
    const input = this.client.variable('input''CustomerResetInput!');
    const mutation = this.client.mutation('myMutation', [idinput], (root=> {
      root.add('customerReset', { args: { idinput } }, (customerReset=> {
        customerReset.add('userErrors', (userErrors=> {
          userErrors.add('message'),
            userErrors.add('field')
        })
        customerReset.add('customer', (customer=> {
          customer.add('id')
        })
      })
    })

    return this.client.send(mutation, { "id": _id"input": { resetToken: _resetTokenpassword: _password } }).then();
  }
 
passing id,token and password did i miss anything in this code. Response I am getting Undefined.
Replies 0 (0)