Is anyone using graphql-codegen with a GraphQLApi ...
# sst
w
Is anyone using graphql-codegen with a GraphQLApi behind an authorizer?
f
Hey @Wyatt Goettsch, we are putting together an official starter template of what we consider an “ideal” fullstack GraphQL setup would look like using SST. (Launching in a week or two) It’s end (backend) to end (frontend) type safe. Here’s the code https://github.com/serverless-stack/serverless-stack/tree/master/examples/ideal-stack
not exactly answering ur questions.. but thought i’d throw it out there in case u find it relevant 😅
y
We make use of AppSync with graphql-codegen
w
@Frank this is awesome!!!
d
I am assuming the question is “how to do introspection with an authenticated GraphQL server?” In which case, the answer is “Use a valid token when making the call.” This seems like a fairly standard requirement, even for the larger, mostly public GraphQL APIs like GitHub or Shopify.
w
@Derek Kershner correct, I finally found what I was looking for here https://github.com/dotansimha/graphql-code-generator/issues/2029