Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom payload for queries, mutations and subscriptions #70

Open
sebastibe opened this issue Jun 25, 2020 · 0 comments
Open

Custom payload for queries, mutations and subscriptions #70

sebastibe opened this issue Jun 25, 2020 · 0 comments

Comments

@sebastibe
Copy link

Some GraphQL servers requires to pass other keys to the payload than query and variables.

For example, this is the subscription query in AWS AppSync:

{
    'id': SUB_ID,
    'payload': {
        'data': GQL_SUBSCRIPTION,
        'extensions': {
            'authorization': {
                'host':HOST,
                'x-api-key':API_KEY
            }
        }
    },
    'type': 'start'
}

Here is the doc.

It doesn't seem possible at the current stage but maybe exposing a lower level event taking a payload map could do the trick in the future?

For information, AppSync also don't support other methods than subscriptions through Websockets as mentioned in #65 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant