You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The session setup has to be done twice and ideally there should be a single point of contact for it.
As of now, there's a session setup for the Dataloader injected in the context and one for the relay connections, e.g.:
Session Setup For Dataloaders
# context is expected to have an instance of StrawberrySQLAlchemyLoaderclassCustomGraphQLView(GraphQLView):
defget_context(self):
return {
"sqlalchemy_loader": StrawberrySQLAlchemyLoader(bind=YOUR_SESSION),
}
The session setup has to be done twice and ideally there should be a single point of contact for it.
As of now, there's a session setup for the Dataloader injected in the context and one for the relay connections, e.g.:
Session Setup For Dataloaders
Session Setup For Relay
The issue had already been spotted by the author on this comment: #65 (comment) and discussed on a community-chat session.
Upvote & Fund
The text was updated successfully, but these errors were encountered: