Skip to content

Looking for user in session cookie for each field resolved? #98

Open
@SylvainGarrigues

Description

@SylvainGarrigues

Hello,

As far as I understand, the meMiddleware function makes Firebase look for the user based on the token provided in the session cookie.

As a middleware, it is executed for every field of the GraphQL request: isn't it overkill, couldn't it be done only once in the context when instantiating ApolloServer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions