Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

I Built a TypeScript Object-Graph Database Because I Got Tired of Flattening Everything

DEV Community·Nicolai Kilian·18 days ago
#urTg0yZC
Reading 0:00
15s threshold

Originally published on my blog: https://nicolai.hashnode.dev/i-built-a-typescript-object-graph-database-because-i-got-tired-of-flattening-everything I Built a TypeScript Object-Graph Database Because I Got Tired of Flattening Everything I like rich domain models. Objects that point to other objects. Shared references. Classes with behavior. Maps. Sets. Sometimes cycles, because real-world domains have a rude habit of being less tidy than our storage layers would prefer. In TypeScript, this can feel very natural. You build a root object, hang your domain off it, pass references around, and the shape of the program starts to match the shape of the problem. Then persistence enters the room and quietly starts rearranging the furniture. Tables. Join tables. Mapper code. DTOs. Rehydration logic. ORM behavior you mostly understand until Thursday afternoon. All the familiar stuff. This is not a complaint about Postgres. I like Postgres. I use Postgres.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More