Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : Does this work with deeply nested relationships ? #32

Open
Eldow opened this issue Sep 2, 2021 · 0 comments
Open

Question : Does this work with deeply nested relationships ? #32

Eldow opened this issue Sep 2, 2021 · 0 comments

Comments

@Eldow
Copy link

Eldow commented Sep 2, 2021

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant