这是indexloc提供的服务,不要输入任何密码
Skip to content

stringify-numeric-types option is not respected in remote database relationships #8387

@Seeker14491

Description

@Seeker14491

What is the expected behaviour?

The stringify-numeric-types flag / HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES env variable makes the server stringify certain Postgres numeric types such as bigint that might be too big to represent as a JSON number.

What is the current behaviour?

Despite enabling the stringify-numeric-types flag, when I perform a query that traverses a remote database relationship, a bigint field is being returned as a JSON number instead of a string.

Screenshots

If I query the users table directly, then the steam_id field (which is a bigint) is returned as a string, as expected:
chrome_0331

However, if I traverse a remote database relationship, then the steam_id field is returned as a number:
chrome_0329
Here, lf_inspections is a table in another postgres database, and player is a remote database relationship I've defined that connects it to the same users table from the previous query.

Version Information

Hasura server: v2.4.0
Main Hasura db with users table: Postgres v14.2
Other db with lf_inspections table: Postgres v12.9

Metadata

Metadata

Assignees

Labels

k/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions