Skip to content

How to remove the "extensions" filed from the subscription payload #1572

@V1per3

Description

@V1per3

Versions:
"@apollo/client": "^3.11.4",
"@vue/apollo-composable": "^4.2.1",
"@vue/apollo-util": "^4.0.0-beta.6",
"graphql": "^16.9.0",
"graphql-tag": "^2.12.6",
"graphql-ws": "^5.16.0",
"vue": "^3.4.29",

When I implemented the subscription feature,I found that my server doesn't support the ”extensions” field. So is there a way to remove the ”extensions” field from payload?
Below is my code and error

const { result,error,onResult,onError } = useSubscription(gql`subscription {
    subscribe(attNames:["sys/tg_test/2/ampli"],modes:[PERIODIC]){
            full_name
            index
            event
            value {
                name
                value
                timestamp
                data_type
                data_format
            }
            subscription_error
        }
    }`,undefined,()=>({
        enabled: enabled.value,
        debounce: 2000,
    }));

err2

If anyone can help me, I will be very grateful to you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions