Access GraphQL types in external app via CodeGen

TLRD: In an external application, I need to generate types based on the SDLs created within the Redwood JS application. What is the best approach for this?

Our primary application is built on Redwood JS. I have a second (React Native) application that shall be interacting with the Redwood app’s API. We want to have type-safety in the native app & so I’m looking for a solution that will allow us to leverage CodeGen to ‘pull’ the schema (from the Redwood app) and generate a set of types to be used within the native app.

Please let me know if more context will help answer. Thanks in advance!

1 Like

@sheixt Did you figure something out for this? I would be interested in something similar too!