https://serverless-stack.com/ logo
#sst
Title
# sst
w

Wyatt Goettsch

06/16/2022, 12:00 AM
Is anyone using graphql-codegen with a GraphQLApi behind an authorizer?
f

Frank

06/16/2022, 4:42 AM
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

Younes El Attar

06/16/2022, 1:27 PM
We make use of AppSync with graphql-codegen
w

Wyatt Goettsch

06/16/2022, 3:40 PM
@Frank this is awesome!!!
d

Derek Kershner

06/16/2022, 5:11 PM
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

Wyatt Goettsch

06/16/2022, 7:30 PM
@Derek Kershner correct, I finally found what I was looking for here https://github.com/dotansimha/graphql-code-generator/issues/2029