Optimizing GraphQL API calls and verifyRequest #827
mirceapiturca
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
verifyRequest
is making several types of verifications. First, it will verify the store and the token expiration. The last check is done by making a test API GraphQL call.Any API calls done via the GQL proxy,
app.post("/graphql", verifyRequest(app), async (req, res),
will make 2 API calls.Could the
/graphql
route be optimized by skipping the test API GraphQL call? The call will be done by the graphql proxy.Skipping the test API GraphQL for this route would improve the overall performance.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions