That's not exposing database associations. At most that's exposing aspects of the domain model which are also reflected in the persistence model.
That's not exposing database associations. At most that's exposing aspects of the domain model which are also reflected in the persistence model.
As best I can tell from my limited experience, GraphQL is just exposing the bones of your relational schema without giving it much domain behavior. It's the software equivalent of offering a grocery store full of ingredients when all the hungry person wants is a sandwich.
The example `{ users { posts { comments } } }` reflects that in the abstract modeling of a message board, this relationship exists. The representation of this relationship will change depending on the database implementation; a document db may store the data explicitly in the hierarchical form, while a relational db would store them with a series of joins.