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
It seems at current moment it is only working for /graphql endpoint, I tested for Angular website using graphql which makes endpoint as /graphql/query and it didn't seem to catch those requests. Might be good to add capability to work with all kind of endpoints containing /graphql/<> and not just /graphql ones?
The text was updated successfully, but these errors were encountered:
Aksh-a1
changed the title
Only working for React website and not all websites using graphql.
Only working for /graphql endpoint and not all endpoints containing /graphql/<>
Oct 16, 2020
Looks like this issue was something else. Digging further into the issue I found that it was not the problem of the endpoint, but of the query not having operation name 😅 . Refer the screenshot below:
Endpoint filter - as the extension is not able to filter the endpoints without graphql in them.
and
the operation: req.operationName.trim(), doesn't has the trim method when there is no operation in the query
Possible solutions I am making -
Adding more endpoints filter built-in (graphql, query etc) and also providing a preferences or modifications option to provide regex/string to filter in the endpoint
need to find an alternate identifier in case req.operationName is not present
It seems at current moment it is only working for
/graphql
endpoint, I tested for Angular website using graphql which makes endpoint as/graphql/query
and it didn't seem to catch those requests. Might be good to add capability to work with all kind of endpoints containing/graphql/<>
and not just/graphql
ones?The text was updated successfully, but these errors were encountered: