Skip to main content

Issue with create_update mutation

  • April 7, 2022
  • 4 replies
  • 753 views

carlosdelgado

Hi,
I’m facing an issue with this mutation:

mutation saveUpdate ($item_ids:Int, $body: String){
  create_update (item_id: $item_ids, body: $body) {
    id
    text_body
    body
    created_at
  }
}

And the answer I’m getting is:

{
  "errors": [
    {
      "message": "An operation name is required"
    }
  ],
  "account_id": XXXXXX
}

What am I doing wrong?

Thanks
Carlos

4 replies

kolaai
Forum|alt.badge.img
  • monday.com Partner
  • April 7, 2022

If you change saveUpdate to create_update, does that resolve the issue?


carlosdelgado
  • Author
  • Participating Frequently
  • April 7, 2022

Nope, it’s still the same. Thanks for the suggestion in any case!


kolaai
Forum|alt.badge.img
  • monday.com Partner
  • April 7, 2022

Strange. You might want to write to app support so that they can look into the issue


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 10, 2022

Hello there,

Matias here!

This is strange.

I just tried this mutation in my Playground and it worked for me.

Could you try hardcoding the IDs instead of using variables?

Looking forward to hearing from you 🙂

Cheers,
Matias