Skip to content
Discussion options

You must be logged in to vote

I've identified the issue.
Because I'm using the bigint data type, i need to configure supportBigNumbers and bigNumberStrings in the database connection settings.

// file: config/database.ts

const databaseConfig: DatabaseConfig = {

  connections: {
    mysql: {
      client: 'mysql2',
      connection: {
        host: Env.get('MYSQL_HOST'),
        port: Env.get('MYSQL_PORT'),
        user: Env.get('MYSQL_USER'),
        password: Env.get('MYSQL_PASSWORD', ''),
        database: Env.get('MYSQL_DB_NAME'),
        supportBigNumbers: true, // Needs to be set to true
        bigNumberStrings: true,  // Needs to be set to true
      },
    },
  },
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@deloz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by deloz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants