Skip to content

Undefined column selection on polymorphic table queries #57

@Luke265

Description

@Luke265
create table relational_items (
  id serial primary key,
  type item_type not null default 'TOPIC'::item_type,
  deleted_at timestamp with time zone
);

create table relational_topics (
  id int primary key references relational_items,
  title text not null
);
comment on table relational_items is $$
  @interface mode:relational type:type
  @type TOPIC references:relational_topics
  $$;
query MyQuery {
  allRelationalTopics {
    nodes {
      title
    }
  }
}

query returns error error: column __relational_topics__.deleted_at does not exist on postgraphile V5

full reproduction: benjie/ouch#45

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions