Skip to content

Passing the request_context to graphql #7

Closed
@valentinradu

Description

@valentinradu

Not sure if this is intended or not but shouldn't the context be taken outside the message processing?
In base.py:

def execute(self, request_context, params):
        return graphql(
            self.schema, **dict(params, allow_subscriptions=True))

Should be:

self.schema, **dict(params, context_value= request_context, allow_subscriptions=True))

Otherwise, how can you pass the request_context? Does it make sense to be per message? Or is it intended for another use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions