News for hackers. Stuff that matters.
Re:Some New HTTP Verbs by hn_throwaway_99 on Tuesday September 13, 2022 @09:35AM (#32824072)
FWIW, this is a huge benefit of GraphQL. All GraphQL servers that publish their schemas can instantly have their schemas loaded with full documentation and an interactive execution environment with GraphQL Playground.
Re:Some New HTTP Verbs by capableweb on Tuesday September 13, 2022 @09:43AM (#32824187)
Is it really a distinct benefit though since something similar to that have been existing for a really long time before GraphQL already? From OpenAPI/Swagger all the way back to HATEOS/HAL and RDF, if not even earlier.
Re:Some New HTTP Verbs by freedomben on Wednesday September 14, 2022 @11:34AM (#32838666)
I'm not generally a fan of graphql, but yes it's a remarkable feature. The other options (like swagger) take more effort and tend to not be maintained well. But even when they are, it's still not as developer friendly (to the client) as graphql.
Re:Some New HTTP Verbs by hn_throwaway_99 on Tuesday September 13, 2022 @12:57PM (#32826968)
I've worked with all of those options before I started working with GraphQL. The "out-of-the-box" support, especially the standardization that GraphQL enforces with its schema definition, is/was night-and-day compared to something like Swagger.
Re:Some New HTTP Verbs by eurasiantiger on Tuesday September 13, 2022 @10:27AM (#32824703)
It is a distinct benefit when your query playground is schema-aware and can suggest completions for types, fields and field (query) parameters, as well as validate everything pre-request.