News for hackers. Stuff that matters.
Re:Why, after 6 years, I'm over GraphQL by tangkikodo on Friday May 31, 2024 @08:28AM (#40534242)
Things will be very interesting if we treat each single rest endpoint as a GQL query.

With static typing definition and OPENAPI, we can declare the response type first, and then borrow the concepts of resolver and dataloder to easily construct the response we want.

Using resolver and dataloader can iterate as fast as GQL, and after the requirement is stable, we can refactor each single endpoint on demand.

for FastAPI user, pydantic-resolve is developed for this purpose.

Re:Why, after 6 years, I'm over GraphQL by peter_l_downs on Friday May 31, 2024 @10:13AM (#40535444)
Yeah basically this!