/plushcap/analysis/hasura/using-custom-sql-functions-for-queries-with-postgres-and-graphql-ddca6caf6681

Using Custom SQL functions for queries with Postgres and GraphQL

What's this blog post about?

This text discusses how to use custom SQL functions for queries with Postgres and GraphQL. Custom SQL functions are procedures that can be defined and stored in a database, allowing business logic to be run directly on the database itself. Currently, only certain types of Postgres functions can be queried in the GraphQL API. Access control permissions configured for the SETOF table of a function are also applicable to the function itself. The text provides two examples of how to query functions in the GraphQL API: a custom text-search function and a PostGIS-based function. It also mentions that support for more function types and for functions in mutations is on its way.

Company
Hasura

Date published
Aug. 16, 2018

Author(s)
Rikin Kachhia

Word count
676

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.