Skip to content

Table based enums not filterable #219

Open
@wtravO

Description

@wtravO

Replication steps:

create table some_random_enum (
  type text primary key,
  description text
);

insert into some_random_enum (type, description) values ('type_one', 'Type One');

create table potato (
  id serial primary key,
  name text,
  type text references some_random_enum
);

insert into potato (name, type) values ('Potato One', 'type_one');
query {
  potato(
    filter: {
      type: {
        equalTo: TYPE_ONE
      }
    }
  ){
    nodes {
      id
      name
      type
    }
  }
}

Error:

Planning error: expected 'pgFilterAttribute' to be present on the $where plan's extensions; your extensions to `postgraphile-plugin-connection-filter` does not implement the required interfaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions