loopbackio / loopbackio/loopback-next

lb4 discover model is correct,but when i use this model ,return data's type is error that not what I need this type

オープン
#9,140 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
TypeScript
スター
5.1k
フォーク
1.1k
平均マージ
2日 21時間
マージ済み PR(30日)
27

説明

Describe the bug

@property({ type: 'number', required: true, scale: 0, postgresql: { columnName: 'node_parent', dataType: 'bigint', dataLength: null, dataPrecision: null, dataScale: 0, nullable: 'NO', }, }) nodeParent: number;

I use postgreSQL DB and use lb4 discover, correct to create the last one item,but when i use this model,it return data‘s is error ;I need return number,but it return string type ,for e.g.

PermissionMenu { id: undefined, nodeName: undefined, nodeType: undefined, nodeParent: '123123123', parentNodes: undefined, seq: undefined, description: undefined, cssExt: undefined }

Logs

No response

Additional information

No response

Reproduction

Occasional problem

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

ソースファイル、テスト、または信頼できる再現手順は提供されていません。PostgreSQL の bigint フィールドに対応する lb4 discover パスから始めて、報告された nodeParent の値を再現してください。完了条件は、発見されたモデルが期待される数値型を一貫して返すことです。関連するテスト領域が見つかった場合は、リグレッションカバレッジも追加してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
postgresql, typescript
領域
backend, databases
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。