3 ms·
PostgREST[1] also comes to mind. Both this and Hasura are build in Haskell. (I rather not expose someone else's service to the internet if that is dyn-typed/ja
by cies 5y ago
PostgREST[1] also comes to mind.
Both this and Hasura are build in Haskell. (I rather not expose someone else's service to the internet if that is dyn-typed/javascript and has full access to my database -- hence I like Hasura)
[1]: https://postgrest.org/en/stable/ https://postgrest.org/en/stable/
- hermanradtke 5y ago> I rather not expose someone else's service to the internet if that is dyn-typed/javascript and has full access to my database Postgraphile is written in TypeScript.
- cies 5y agoWhich is then transpiled back to JS. I dont want to nag about XYZ language, but many of the remote exploits stem from dyn-langs just being way to permissive. Think of "eval(...)" or the capability to write to disk.
- brunoqc 5y agoPostgREST is great, but is there something like graphql-codegen to generate typescript code?
- Dystopian 5y agoYep they also publish an OpenAPI spec (what tools like Swagger use for auto-docs) - you should be able to use something like: https://www.npmjs.com/package/openapi-typescript-codegen https://www.npmjs.com/package/openapi-typescript-codegen to create your codegen
- brunoqc 5y agoNice, thanks!