GraphQL subscriptions `mutation_type` is always UPDATE
Author: IcanDivideBy0Created Nov 13, 2024Updated Mar 5, 2025
Prerequisites
- Are you running the latest version(s)?
- Have you searched the documentation for your issue?
- Did you search for an existing issue or pull request?
Description
When subscribing to an entity, the mutation_type seems to always be UPDATE, at least for newly created entity
Details
These details can help to reproduce the environment the issue is occurring
Local Environment: node v20.15.1
Query Version: @subql/query@^2.15.2
Indexer Version: @subql/node-ethereum@^5.1.7
Network Details:
- anvil local test chain
Steps to Reproduce
- subscribe to any model
- create an entity
- the subscription message payload contains a
mutation_typeset toUPDATE
Expected behavior: mutation_type should be INSERT
Actual behavior: mutation_type is UPDATE
Source: subquery/subql