Skip to content

Support for Apollo's GraphQL Federation #1565

Closed

Description

@arlampin

Apollo has open-sourced their Apollo Federation spec and JS implementation

blog post: https://blog.apollographql.com/apollo-federation-f260cf525d21
spec: https://www.apollographql.com/docs/apollo-server/federation/federation-spec/

It would be nice to have graphql-java support the federation spec so that services written using graphql-java could be used as a part of a federated schema.

Activity

  1. andimarek commented on Jun 9, 2019

    @andimarek
    Member

    Hi,

    I think support for Apollo Federation would be an additional library on top of GraphQL Java, therefore we will not implement it directly in this project.

    Of course if some features are missing in GraphQL Java to implement it we would be open for PRs/changes to make it happen.

  2. bbakerman commented on Jun 11, 2019

    @bbakerman
    Member

    One thing listed as missing is extend type XXX {...} support in the schema printer

    Todate we collapse extend type objects as schema build time and hence there is no evidence of their existence at schema print time (eg when we print a GraphQLObjectType )

  3. bbortt commented on Jun 17, 2019

    @bbortt

    Hi all!

    I'm very interested in this as well. Sadly, I don't know much about the background of this project. For example, would the same separation of "Federation" and "Graphql-Server" as in the apollo-implementation be possible and make sense? E.g. does graphql-java also have some kind of executor and would this be customizable?
    Then we should definitely create a new project which "stitches" the schema and creates this executor.
    Anyways I think we have to adapt the existing graphql-java to allow "unchecked" foreign entities (e.g. no present Java object) for sure. Respectively support the new syntax occasionally.

    What do you guys think?

    BR, Timon

  4. arlampin commented on Jun 17, 2019

    @arlampin
    ContributorAuthor

    I just realized that Apollo seems to already have a Java impl. available at https://github.com/apollographql/federation-jvm build on top of graphql-java. I haven't actually tested it and I haven't seen any references to it, but it seems to be exactly what I had in mind.

  5. bbortt commented on Jun 17, 2019

    @bbortt

    @arlampin nice one, didn't know that. sadly it seems just to cover the service party not the gateway :( I'd love to combine it with the cloud gateway. however, it's a start, at least.

  6. mcohen75 commented on Jun 17, 2019

    @mcohen75

    I have a couple of PRs open to the federation-jvm project that gets the project into a basic working state. More work is necessary. So far the team has not been highly responsive to my questions and PRs. @bbakerman @andimarek is the team here open to the possibility of a community contributed federation project?

  7. andimarek commented on Jun 17, 2019

    @andimarek
    Member

    closing this issue, because there is no direct action at the moment.

    Please contribute to the https://github.com/apollographql/federation-jvm project if you are interested in java federation support.

    @mcohen75 not sure what you mean with "community contributed". If you mean projects under the GraphQL Java org, then the answer in general is no: we only allow projects inside the org we are ourself fully committed in maintaining.

  8. mcohen75 commented on Jun 17, 2019

    @mcohen75

    Thanks for following up Andreas. Yes I meant under the GraphQL Java org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions