i can use 2 mutation in the same component in reac...
# orm-help
h
i can use 2 mutation in the same component in react
h
yea
h
if i use the both he doesnt work export const UserDelete = gql` mutation UserDelete ($id:ID!){ removeUser (id:$id) { _id } }
Copy code
;

export const Usermutation = gql
mutation Usermutation ($firstName: String!, $lastName: String!,$email:String,$telephone:Int!,$id:ID!, $password:String!){ updateUser(firstName: $firstName,lastName: $lastName,email:$email,telephone:$telephone,id:$id,password:$password) { _id firstName lastName email telephone password } } `; export default compose( graphql(UserDelete), graphql(Usermutation, { options: { variables: { id: localStorage.ids } }, }) )(withStyles(styles)(Users));
h
Yea, because you don't provide correct variables 🙂
and you need to call UserDelete
h
thanks the solution is use make name to mutation to distingue between mutation