pg-order-by-related icon indicating copy to clipboard operation
pg-order-by-related copied to clipboard

Question : Does this work with deeply nested relationships ?

Open Eldow opened this issue 2 years ago • 0 comments

Hello there,

I was wondering if this plugin could work with deeply nested unique relationships, eg :

create table user (
  id text not null primary key,
  name text not null unique
);
      
create table author (
  id serial primary key,
  user_id int not null unique,
  constraint author_user_fkey foreign key (user_id)
    references user (id)
);

 create table writer (
    id serial primary key,
    author_id int not null unique,
    constraint writer_author_fkey foreign key (author_id)
      references author (id)
);


query example {
  writers(orderBy: USER_BY_AUTHOR_ID_BY_WRITER_ID__NAME_ASC) {
    nodes {
      name
    }
  }
}

Thank you !

Eldow avatar Sep 02 '21 13:09 Eldow