Using Query-Complexity with ApolloServer and problem accessing req #344
Labels
Out of scope ✖️
Proposal doesn't fit in project goals
Question ❔
Not future request, proposal or bug issue
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.
The text was updated successfully, but these errors were encountered: