hasura / hasura/graphql-engine

Postgres limits 100 parameters to `json_build_object` function

Open
#4,004 2 comments 0 reactions 1 assignee Claimed by @0x777 View on GitHub
a/data/postgres c/server k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

The server is using `json_build_object` to select fields from a table if any field name (alias) is more than 63 characters (See [this](https://github.com/hasura/graphql-engine/blob/b84db36ebb51acd5b51e1254c103f3097a7c2358/server/src-lib/Hasura/RQL/DML/Select/Internal.hs#L204)).

References:-
https://stackoverflow.com/questions/17421265/postgresql-how-to-pass-more-than-100-arguments-to-a-function

(via `JasonC#9374` on Discord)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.