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

Are interfaces possible? #6

Closed
kitbs opened this issue Jul 15, 2019 · 2 comments
Closed

Are interfaces possible? #6

kitbs opened this issue Jul 15, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@kitbs
Copy link

kitbs commented Jul 15, 2019

Is it possible to use interfaces with this library? For example the ... on Tree syntax in the following snippet from the GitHub API:

query {
  repository(owner: "vendor", name: "package") {
    object(expression: "master:src/") {
      ... on Tree {
        entries {
          name
        }
      }
    }
  }
}

Thanks for a really useful package!

@mghoneimy
Copy link
Owner

@kitbs not yet, I'm planning to work on that right after adding support for variables. Should take 2-3 weeks to get this done given my current schedule.

@mghoneimy mghoneimy added the enhancement New feature or request label Jul 19, 2019
@mghoneimy
Copy link
Owner

@kitbs Support for line fragments has been released today on v1.3
https://github.com/mghoneimy/php-graphql-client/releases/tag/v1.3

You can checkout examples on how to use it here as well:
https://github.com/mghoneimy/php-graphql-client#using-interfaces-query-with-inline-fragments

@mghoneimy mghoneimy self-assigned this Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants