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

Using Query-Complexity with ApolloServer and problem accessing req #344

Closed
PSPanesar opened this issue May 27, 2019 · 1 comment
Closed
Labels
Out of scope ✖️ Proposal doesn't fit in project goals Question ❔ Not future request, proposal or bug issue

Comments

@PSPanesar
Copy link

Hi,

I have tried to add query-complexity to my typegraphql project as in the docs but when i add in the query complexity options to the ValidationRules on the server i can not access req object to pass through the req variables to the resolves. I am using ApolloServer for my base server. When i try and set variables: req.query.variables the req object is not available. I have followed the docs exactly. I wonder if anyone could advise on how to get query-complexity working with ApolloServer and typegraphql?

Thanks.

@MichalLytek
Copy link
Owner

See this issues:
slicknode/graphql-query-complexity#7
apollographql/apollo-server#1777
apollographql/apollo-server#2232
apollographql/apollo-server#2008

Closing as it's not in scope of TypeGraphQL.

@MichalLytek MichalLytek added Out of scope ✖️ Proposal doesn't fit in project goals Question ❔ Not future request, proposal or bug issue labels May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Out of scope ✖️ Proposal doesn't fit in project goals Question ❔ Not future request, proposal or bug issue
Projects
None yet
Development

No branches or pull requests

2 participants