Question
Hi Apollo iOS team 👋
In our project, we're trying to distinguish between authenticated and unauthenticated GraphQL operations, so that our ApolloInterceptor only adds authentication headers for the relevant requests.
Currently, we're going to use a custom script to scan the generated operations and maintain a list of unauthenticated operations, but we were wondering:
- Does Apollo iOS support any built-in way or pattern to mark or identify unauthenticated operations?
- If not, would it make sense to use a custom directive or metadata in the schema that the codegen could potentially expose?
Would appreciate any guidance or best practices around this.
Thanks!
Question
Hi Apollo iOS team 👋
In our project, we're trying to distinguish between authenticated and unauthenticated GraphQL operations, so that our
ApolloInterceptoronly adds authentication headers for the relevant requests.Currently, we're going to use a custom script to scan the generated operations and maintain a list of unauthenticated operations, but we were wondering:
Would appreciate any guidance or best practices around this.
Thanks!