hansololai/postgraphile-polymorphic-relation-plugin

View on GitHub
src/define_polymorphic_constraint_plugin.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Function definePolymorphicCustom has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

export const definePolymorphicCustom = (builder: SchemaBuilder, options: Options) => {
  // First add an inflector for polymorphic backrelation type name
  builder.hook('inflection', inflection => ({
    ...inflection,
    filterManyPolyType(table: PgClass, foreignTable: PgClass) {
Severity: Minor
Found in src/define_polymorphic_constraint_plugin.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status