Skip to content

Commit ad4e736

Browse files
iadmytrorhyslbw
authored andcommitted
refactor!: align GraphQL types to conform with database and Hasura string casts
- configures Hasura to cast number that have potential to overflow JS 32-bit integers, including `numeric` and `bigint`, as strings.
1 parent dcd56d8 commit ad4e736

11 files changed

+227
-218
lines changed

packages/api-cardano-db-hasura/hasura/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ ENV \
77
POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password \
88
POSTGRES_USER_FILE=/run/secrets/postgres_user \
99
HASURA_GRAPHQL_ENABLED_LOG_TYPES="startup, http-log, webhook-log, websocket-log" \
10-
HASURA_GRAPHQL_ENABLE_TELEMETRY=false
10+
HASURA_GRAPHQL_ENABLE_TELEMETRY=false \
11+
HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES=true
1112
EXPOSE 8080

0 commit comments

Comments
 (0)