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

Did you miss some features? #145

Open
fwh1990 opened this issue Sep 18, 2020 · 3 comments
Open

Did you miss some features? #145

fwh1990 opened this issue Sep 18, 2020 · 3 comments

Comments

@fwh1990
Copy link

fwh1990 commented Sep 18, 2020

Directives

query Block ($abc: Boolean, $page: Int) {
  id @include(if: $abc)
  list (page: $page) @skip(if: $abc) {
    id
    name @include(if: $abc)
  }
}

fragment userFragment on User {
  title @include(if: $abc)
}

And more, I will find out later. Good luck.

@fwh1990
Copy link
Author

fwh1990 commented Sep 18, 2020

The inline fragment also can use directives, I'm working on it now.

hero {
   ... on Character @include(if: $withDetails) {
     name
    }
 } 

@fwh1990
Copy link
Author

fwh1990 commented Sep 18, 2020

Even fragment

query Block {
  test: {
    ...userFragment @include(if: true)
  }
}

fragment userFragment on User {
  id
}

@acro5piano
Copy link
Owner

@fwh1990
Thank you for your interest.
Yes, directive compilation is missing. Any PRs are welcome. Thanks.

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

2 participants