News for hackers. Stuff that matters.
Re:Directus – real-time REST and GraphQL API of any SQL data... by jckahn on Sunday February 23, 2025 @12:10PM (#43150985)
Directus has its small-scale and short term benefits, but I can’t recommend building a production-grade app with it. My company uses Directus and we all hate it and are desperately trying to get away from it. Avoid.
Re:Directus – real-time REST and GraphQL API of any SQL data... by tjwds on Sunday February 23, 2025 @12:12PM (#43151013)
Out of curiosity, what don’t you like about it?
Re:Directus – real-time REST and GraphQL API of any SQL data... by jckahn on Sunday February 23, 2025 @12:20PM (#43151096)
Off the top of my head: It surfaces only useless GraphQL error messages to the front end, it’s very frustrating to stand up custom REST endpoints, and the Flow system is painful to develop with and debug. Others on my team have different gripes with it.
Re:Directus – real-time REST and GraphQL API of any SQL data... by rijkvanzanten on Monday February 24, 2025 @02:43PM (#43164000)
Thanks for the feedback!
Re:Directus – real-time REST and GraphQL API of any SQL data... by Davidiusdadi on Sunday February 23, 2025 @02:10PM (#43152123)
Since they support so many databases the integration with specific providers is very shallow - e.g. they do not allow to make use of SQL views.

I personally found the typescript support disappointing in general but specifically around strict null handling. Their graphql schema was also declaring far to many fields as nullable which was a deal breaker for me looking for at least one way to generate precise typescript typings.

Re:Directus – real-time REST and GraphQL API of any SQL data... by o_____________o on Sunday February 23, 2025 @06:43PM (#43154342)
The eternal red flag of a DB UI that tries to support wildly different backends explains a lot of the problems. Many sane and powerful Postgres features can't be used because Directus also needs to support SQLite, for example. Views not properly supported, search features inadequate, graphql DSL with arbitrary limitations, a lot of weird or dysfunctional relational patterns when something much simpler would do... it's a parallel, inferior system on top of stock pg that is very frustrating when used at some depth.
Re:Directus – real-time REST and GraphQL API of any SQL data... by golergka on Sunday February 23, 2025 @12:50PM (#43151351)
How does it measure up to Hasura?
Re:Directus – real-time REST and GraphQL API of any SQL data... by jckahn on Sunday February 23, 2025 @04:32PM (#43153438)
No idea, I’ve never used that.
Re:Directus – real-time REST and GraphQL API of any SQL data... by golergka on Monday February 24, 2025 @09:22AM (#43159856)
This sounds like a very similar service to Hasura, and I just loved using it. I also have some of former colleagues building it, and they've been one of the best engineers I've ever had privilege of working alongside of. If you're already using a tool that occupies very similar place in your stack, I would really suggest evaluating a migration.
Re:Directus – real-time REST and GraphQL API of any SQL data... by jckahn on Tuesday February 25, 2025 @08:21AM (#43171469)
It does not appear that Hasura is fully open source. I'd much rather use Directus, as I don't consider closed source solutions viable.
Re:Directus – real-time REST and GraphQL API of any SQL data... by jaros on Sunday February 23, 2025 @02:38PM (#43152431)
I’m in a similar situation. At first it looked very promising and was benefiting us in bootstrapping the project fast but after a while you’re being slowed down by the “extensions” ecosystem. If you have a bunch of complex extensions then building all of them can take 2 minutes (m3 pro MacBook). Forget instant hot reloading.
Re:Directus – real-time REST and GraphQL API of any SQL data... by codr7 on Sunday February 23, 2025 @08:20PM (#43154941)
Not having even the shadow of a control layer in your app is bound to come back and bite you imo.