Hello,
Hope you are having a good day. I am trying to batch delete metadata with the useDataMutation hook, however I am not sure what the correct configuration is to send the url parameter importStrategy=DELETE.
I have tried:
const deletePisMutation = {
resource: metadata
,
type: ‘create’,
data: ({ data }) => data,
variables: {
importStrategy: ‘DELETE’,
},
}
const deletePisMutation = {
resource: metadata
,
type: ‘create’,
data: ({ data }) => data,
options: {
importStrategy: ‘DELETE’,
},
}
const deletePisMutation = {
resource: metadata
,
type: ‘create’,
data: ({ data }) => data,
options: {
variables: {
importStrategy: ‘DELETE’,
},
},
}
and
const deletePisMutation = {
resource: metadata
,
type: ‘create’,
data: ({ data }) => data,
options: {
importStrategy: ‘DELETE’,
},
}
But none seem to work and there are no example of create mutations with options that I can find on the website.
Any help much appreciated thanks!
Pete