News for hackers. Stuff that matters.
Re:Hasura GraphQL Engine 2.0 by geekuillaume on Wednesday June 23, 2021 @08:58AM (#27603991)
If you are interested by Hasura, don't care about the graphical interface and want more control over permissions, take a look at Postgraphile: https://www.graphile.org/postgraphile/ I've been using it for a year on multiple projects and it's awesome.
Re:Hasura GraphQL Engine 2.0 by cies on Wednesday June 23, 2021 @08:59AM (#27604018)
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/

Re:Hasura GraphQL Engine 2.0 by hermanradtke on Wednesday June 23, 2021 @09:48AM (#27604540)
> 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.

Re:Hasura GraphQL Engine 2.0 by cies on Wednesday June 23, 2021 @12:39PM (#27606505)
Which 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.
Re:Hasura GraphQL Engine 2.0 by brunoqc on Wednesday June 23, 2021 @09:53AM (#27604585)
PostgREST is great, but is there something like graphql-codegen to generate typescript code?
Re:Hasura GraphQL Engine 2.0 by Dystopian on Wednesday June 23, 2021 @10:12AM (#27604767)
Yep 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 to create your codegen
Re:Hasura GraphQL Engine 2.0 by brunoqc on Wednesday June 23, 2021 @10:37AM (#27605037)
Nice, thanks!