top | item 34173248

(no title)

valstu | 3 years ago

Are there any ”api from postgres db” projects that are written in Node.js?

discuss

order

aobdev|3 years ago

I was about to say “but this one is!” and realized I had confused PostgREST with PostGraphile. If you’re interested in GraphQL, you can check out PostGraphile here: https://github.com/graphile/postgraphile

It’s interesting to me that PostgREST and Hasura are written in Haskell, but PostGraphile is not. Given the complexity in parsing arbitrary GQL queries I think I assumed that Haskell was a better fit for the job, hence the mixup!

AprilArcus|3 years ago

Sujan|3 years ago

Prisma has pivoted to be “just” a Node.JS ORM a few years ago (I work there). You can still use it to build an API of course, but you will need some additional tool or libraries.

redmacaron|3 years ago

Directus is actually one. You get the front end which is basically an admin UI, but you also get a full blown fully featured REST API

https://directus.io/

fulafel|3 years ago

Out of curiosity why would you prefer a DB foundation implemented in Node over a mature project in Haskell?

smt88|3 years ago

Yes, but like most large FOSS Node projects, they're dead or under-maintained (huge number of GitHub issues). There are none I'd use today.

adamnemecek|3 years ago

Are you aware of supabase? It's rather nice.