4 ms·
Are there any tools out there that provide generated GQL APIs with auth provided via middleware? This looks nice, but I'm hesitant to use anything this config-f
by purplerabbit 6y ago
Are there any tools out there that provide generated GQL APIs with auth provided via middleware? This looks nice, but I'm hesitant to use anything this config-file driven
- gsvclass 6y agoThat almost describes Super Graph. It's not exactly config file driven it can be used as a library within your own GO code and it's configured via a config object. In fact if you look at the example here we're passing null (nil) for the config since unless you want to do something more complex out of the box it just works config is not needed. https://supergraph.dev/docs/home#using-it-in-your-own-code https://supergraph.dev/docs/home#using-it-in-your-own-code
- gsvclass 6y agoThe config file is for when you use Super Graph as a standalone service that you can just deploy to Cloud Run, App Engine, Digital Ocean or whatever. The standalone service is the same core compiler library with a lot more valuable add-ons like auth middlewares, compression, etc.