Adding REST endpoints to Hasura
In the latest release of Hasura 2.0, users can now add REST endpoints to stored queries and mutations. This feature is significant as it allows developers to use both GraphQL and REST APIs in their projects without compromising on developer velocity or security concerns. By creating a named query/mutation in the GraphiQL API explorer and pressing the REST button, users can provide a helpful name for the endpoint, specify its suffix path, and choose which verb it should respond to. Hasura also supports traditional body parsing for dynamic variables and dynamic URL segments. This update enables developers to maintain and deliver REST endpoints where needed while still benefiting from GraphQL's features.
Company
Hasura
Date published
March 17, 2021
Author(s)
Jesse Martin
Word count
480
Hacker News points
None found.
Language
English