question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

console: view relationship rows in data browser break for relationhips with bigint fkeys

See original GitHub issue

I’m running v1.1.1 and having the following error when clicking on “View” for some table relationships in the console.

TypeError: Cannot read property 'user' of undefined
    at https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.1/main.js.gz:1:3306984
    at Array.map (<anonymous>)
    at e (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.1/main.js.gz:1:3306937)
    at n (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.1/main.js.gz:1:3311060)
    at ho (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.1/vendor.js.gz:1:2735842)
    at Wo (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.1/vendor.js.gz:1:2742798)
    at Xo (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.1/vendor.js.gz:1:2749148)
    at fs (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.1/vendor.js.gz:1:2771675)
    at ds (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.1/vendor.js.gz:1:2772065)
    at Js (https://graphql-engine-cdn.hasura.io/console/assets/channel/stable/v1.1/vendor.js.gz:1:2779243)

I tried to reload metadata with no success.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rikinskcommented, May 19, 2020

This issue gets fixed once you set the HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES env var while running the GraphQL Engine. See server config reference. This happens due to the max size of integers supported in JSON which is not sufficient to store PG bigint s

0reactions
rikinskcommented, May 19, 2020

Closing this issue. Please feel free to reopen if there are further questions or some other thoughts to add

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create and manage foreign key relationships | Cloud Spanner
This page describes how to manage foreign key relationships in your database. Foreign keys allow you to define relationships between tables.
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >
An Intermediate MySQL Tutorial - Scripting, Data Types ...
This article explains some concepts in depth, such as scripting and data types. ... Junction table created to support many-to-many relationship between two ......
Read more >
IBM Cognos Analytics Version 11.1 : Data Modeling Guide
In the Diagram settings box, select the Cardinality check box to show the cardinality of relationships between different tables in your data module....
Read more >
Prisma Client API (Reference)
Programmatically overrides properties of the datasource block in the schema.prisma file - for example, as part of an integration test. See also: Data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found