You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`WARNING: makeJSONPgSmartTagsPlugin only supports tags, descriptionand columns currently, you have also set '${Object.keys(
299
+
`WARNING: makeJSONPgSmartTagsPlugin identifier spec only supports 'tags', 'description', 'attribute' and 'constraint' currently, you have also set '${Object.keys(
228
300
rest
229
-
).join("', '")}'`
301
+
).join("', '")}' at 'config.${kind}.${identifier}'`
230
302
);
231
303
}
304
+
232
305
rules.push({
233
306
kind,
234
307
match: identifier,
235
308
tags,
236
309
description,
237
310
});
311
+
238
312
if(columns){
239
-
if(kind!==PgEntityKind.CLASS){
240
-
thrownewError(
241
-
`makeJSONPgSmartTagsPlugin: 'columns' is only valid on a class; you tried to set it on a '${kind}'`
242
-
);
243
-
}
244
-
for(constcolumnNameofObject.keys(columns)){
245
-
constcolumnSpec=columns[columnName];
246
-
const{
247
-
tags: columnTags,
248
-
description: columnDescription,
249
-
...columnRest
250
-
}=columnSpec;
251
-
if(Object.keys(columnRest).length>0){
252
-
console.warn(
253
-
`WARNING: makeJSONPgSmartTagsPlugin columns only supports tags and description currently, you have also set '${columnRest.join(
254
-
"', '"
255
-
)}'`
256
-
);
257
-
}
258
-
rules.push({
259
-
kind: PgEntityKind.ATTRIBUTE,
260
-
match: `${identifier}.${columnName}`,
261
-
tags: columnTags,
262
-
description: columnDescription,
263
-
});
264
-
}
313
+
// This was in graphile-utils 4.0.0 but was deprecated in 4.0.1 for consistency reasons.
314
+
process(
315
+
kind,
316
+
identifier,
317
+
PgEntityKind.ATTRIBUTE,
318
+
columns,
319
+
"columns",
320
+
true
321
+
);
322
+
}
323
+
if(attribute){
324
+
process(
325
+
kind,
326
+
identifier,
327
+
PgEntityKind.ATTRIBUTE,
328
+
attribute,
329
+
"attribute"
330
+
);
331
+
}
332
+
if(constraint){
333
+
process(
334
+
kind,
335
+
identifier,
336
+
PgEntityKind.CONSTRAINT,
337
+
constraint,
338
+
"constraint"
339
+
);
265
340
}
266
341
}
267
342
}
343
+
268
344
returnrules;
269
345
}
270
346
@@ -279,7 +355,7 @@ export type SubscribeToJSONPgSmartTagsUpdatesCallback = (
0 commit comments