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
I have an architecture where there is no graphql backend, and I have my resolver code locally on the client. Each resolver sends an api request to a specified rest endpoint with a number of query parameters. Given that resolvers are semi custom built in many scenarios in order to make slight modifications to the queries made and how to store the results in the apollo cache, i can't really use the apollo-http-link (i dont think). But since im doing this, i have to use the @client directive in my queries.
Given that I have to use the client directive, im no longer able to add in links for doing things like logging cache misses, logging queries to the rest endpoint, or anything else. This would be enormously helpful. I believe the root reason is because you designed the links to only run with server queries, as specified in the code here https://github.com/apollographql/apollo-client/blob/main/src/core/QueryManager.ts#L783. So im curious if there is a specific reason for that? And do you all have suggestions for using links with local resolvers if so?
The text was updated successfully, but these errors were encountered:
I have an architecture where there is no graphql backend, and I have my resolver code locally on the client. Each resolver sends an api request to a specified rest endpoint with a number of query parameters. Given that resolvers are semi custom built in many scenarios in order to make slight modifications to the queries made and how to store the results in the apollo cache, i can't really use the apollo-http-link (i dont think). But since im doing this, i have to use the
@client
directive in my queries.Given that I have to use the client directive, im no longer able to add in links for doing things like logging cache misses, logging queries to the rest endpoint, or anything else. This would be enormously helpful. I believe the root reason is because you designed the links to only run with server queries, as specified in the code here https://github.com/apollographql/apollo-client/blob/main/src/core/QueryManager.ts#L783. So im curious if there is a specific reason for that? And do you all have suggestions for using links with local resolvers if so?
The text was updated successfully, but these errors were encountered: