2022-10-27 09:40:52 +00:00
|
|
|
export function updateMetadata(id, key, value) {
|
2021-07-15 09:25:31 +00:00
|
|
|
const mutation = `mutation{
|
2022-10-27 09:40:52 +00:00
|
|
|
updateMetadata(id:"${id}" input:{
|
2021-07-15 09:25:31 +00:00
|
|
|
key:"${key}",
|
|
|
|
value:"${value}"
|
|
|
|
}){
|
|
|
|
errors{
|
|
|
|
field
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
return cy.sendRequestWithQuery(mutation).its("body.data.updateMetadata");
|
|
|
|
}
|
|
|
|
|
2022-01-31 08:37:49 +00:00
|
|
|
export function updatePrivateMetadata(token, key, value) {
|
2021-07-15 09:25:31 +00:00
|
|
|
const mutation = `mutation{
|
2022-01-31 08:37:49 +00:00
|
|
|
updatePrivateMetadata(id:"${token}" input:{
|
2021-07-15 09:25:31 +00:00
|
|
|
key:"${key}",
|
|
|
|
value:"${value}"
|
|
|
|
}){
|
|
|
|
errors{
|
|
|
|
field
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
return cy
|
|
|
|
.sendRequestWithQuery(mutation)
|
|
|
|
.its("body.data.updatePrivateMetadata");
|
|
|
|
}
|