We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc86a6e commit 358f683Copy full SHA for 358f683
src/lib/PostgresMetaColumns.ts
@@ -99,9 +99,12 @@ export default class PostgresMetaColumns {
99
if (ids && ids.length > 0) {
100
const regexp = /^(\d+)\.(\d+)$/
101
102
- const invalidId = ids.find((id) => !regexp.test(id))
103
- if (invalidId) {
104
- return { data: null, error: { message: `Invalid format for column ID: ${invalidId}` } }
+ const invalidIds = ids.filter((id) => !regexp.test(id))
+ if (invalidIds.length > 0) {
+ return {
105
+ data: null,
106
+ error: { message: `Invalid format for column IDs: ${invalidIds.join(', ')}` },
107
+ }
108
}
109
110
const filteringClauses = ids
0 commit comments