/plushcap/analysis/hasura/customising-alias-graphql-fields-with-hasura

Customising and Aliasing GraphQL Fields with Hasura

What's this blog post about?

The text discusses customizing and aliasing GraphQL fields with Hasura. It explains the difference between server-side field name customization and client-side GraphQL aliasing. The article provides examples of how to use GraphQL aliases to rename result fields in a query, making it easier to map responses directly to UI elements without transformations on the frontend. Additionally, it highlights scenarios where aliases are necessary for queries with different arguments. Furthermore, the text introduces server-side customization with Hasura, allowing users to modify field names at the server level and use their preferred naming conventions like camelCase or snake_case without worrying about the underlying Postgres schema.

Company
Hasura

Date published
Nov. 18, 2019

Author(s)
Praveen Durairaju

Word count
759

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.