Hacker News new | ask | show | jobs
by graphweaver 1023 days ago
We have used postgres with every client deployment so far, it's our go to relational db.

We have also needed to connect to a 2nd or 3rd data source on every project. So the power is when you combine these data sources.

1 comments

Do you know about Postgraphile? Your comment did not address that part, I’m curious too
Yeah sorry will address it directly. Graphweaver is different in a number of ways:

- Graphweaver is not just Postgres, you can run it connected to only MySQL - Graphweaver can connect to one or more datasources. You can even connect both MySQL and Postgres together. Sounds crazy but could be good for a migration. - Graphweaver has two layers the API layer and the Data layer. Both of these are represented by coding classes in Typescript. You have full control over how these are exposed and defined in the entity files. - Graphweaver does not automatically reflect the database. Instead you run an import command in our CLI tool that creates Typescript class files for your database. From there you can edit them as needed.

Nice, interesting approach. I like Mikro ORM, I was thinking about building on top of it recently, I think it's a good idea.

Looks like you went for the ORM equivalent of the Shadcn/ui approach. "We generate your code so you can customize it" instead of the more traditional "You use a library and can provide options to it to customize it". I like it!

Postgraphile has a bunch of very cool filtering/grouping capabilities (with plugins), would be nice to have that at some point

Great can you point me to the filtering/grouping capabilities? I will take a look.
Thanks this is what we have on filters so far:

https://graphweaver.com/docs/filters-and-operators

The aggregates package looks very interesting, we would love to see something similar for Graphweaver.