[Strapi v4] How to mutate dynamic zones via graphql?

My bad. There is a typo on my mutation query implementation.

What I send

mutation {
  updatePage(
    id: 1,
    data: {
      elements: [
        {
           __type: "ComponentPageProfile", // this should be __typename
           __component: "page.profile", // this is not needed
           name: "John Doe"
        }
      ]
    }
  ) {
    data {
      id
    }
  }
}

when it should be like this

mutation {
  updatePage(
    id: 1,
    data: {
      elements: [
        {
           __typename: "ComponentPageProfile", 
           name: "John Doe"
        }
      ]
    }
  ) {
    data {
      id
    }
  }
}