TwentyT
Twenty5mo ago
3 replies
kyrpav

Mutation on custom item for default field

Hi, i have created a custom object for Campaigns. One of the default fields in each new Object is the Name.
I am trying to run a mutation to update Campaigns by filtering the Name field:

mutation UpdateCampaignByName ($campaign: String!,$data: CampaignUpdateInput!){
updateCampaigns(
filter:{
name: {
eq: $campaign
}
}
data: $data
)
{
id
status
campaignid
}
}

The campaingid is another custom fields that comes from external source. So i am trying technically to update the status and this campaignID record.

I get this error:
{
"errors": [
{
"message": "missing FROM-clause entry for table "_campaign"",
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"userFriendlyMessage": "An error occurred."
}
}
],
"data": {
"updateCampaigns": null
}
}

I am using 1.5.3 version
Was this page helpful?