<MaterialTable
rowData => ({
icon: () =>
<DeleteOutline color='action' />,
tooltip: 'Delete User',
onClick: (event, rowData) => {
event.stopPropagation();
<Mutation // this is not executing
mutation={delete_users}
variables={{input: rowData.userid}} >
{(deleteCdeUser, { loading, error, data }) =>
{
console.log(data); // here i should get the data
}}
</Mutation>
}
})
]}
/>
The mutaion doesnt execute at all at the below point. I am newbie to the graphql and apollo. Any help would be much appreciated