yale_77214
08/15/2023, 5:49 PMgraphql-codegen library to generate type definitions for GraphQL queries & mutations.
The main blocker I'm running into at the moment is auth: it doesn't seem like there's a straightforward way to configure the codegen utility with my app's client credentials. Has this been done before successfully?rahul1
08/15/2023, 9:15 PMrahul1
08/15/2023, 9:16 PMyale_77214
08/16/2023, 8:08 PM_typenames to each node of the query, which it then uses for caching and type validation. However, when __typenames is included in the query, the server responds with a 403.
Because of this, we suppress the client from querying for __typenames . This allows us to actually make queries.
This is causing us some issues. Most crucially, Apollo is stripping out any data we get via inline fragments, since it apparently uses __typenames to verify that the data matches against a list of possible types.
We're wondering - would it be possible for the GraphQL server to allow us to query for __typenames?rahul1
08/18/2023, 6:15 PMyale_77214
08/18/2023, 6:47 PMrahul1
08/18/2023, 7:43 PMyale_77214
08/18/2023, 9:28 PMrahul1
08/18/2023, 9:29 PMrahul1
08/22/2023, 8:56 PMyale_77214
08/23/2023, 2:44 PMrahul1
08/25/2023, 4:13 AMyale_77214
08/25/2023, 3:10 PM