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

feat(GraphQL): Extend Support For Apollo Federation #7275

Merged
merged 16 commits into from
Jan 28, 2021

Commits on Jan 5, 2021

  1. feat(GraphQL): Add Schema support for federation (#7159)

    Fix GRAPHQL-905.
    This PR implements [Federation Schema Specification](https://www.apollographql.com/docs/federation/federation-spec/#federation-schema-specification) in order to support apollo federation.
    minhaj-shakeel authored Jan 5, 2021
    Configuration menu
    Copy the full SHA
    95803ba View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2021

  1. feat(ApolloFederation): Add "_service" resolver (#7260)

    Fixes GRAPHQL-934.
    This PR adds `_service` resolver according to the federation specs which return generated schema string without @apollo directives to be used by the gateway.
    The query is:
    ```
    query {
       _service {
          sdl
       }
    }
    ```
    which returns the schema string.
    minhaj-shakeel authored Jan 11, 2021
    Configuration menu
    Copy the full SHA
    b674991 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2021

  1. feat(Apollo): Format Schema For Apollo Gateway (#7298)

    Fixes GRAPHQL-951.
    This PR modifies GraphQL generated schema in order to support federation.
    It also removes some directive definitions which currently give validation error in apollo.
    This PR also removes generated mutations and mutation input types from the Generated schema.
    minhaj-shakeel authored Jan 18, 2021
    Configuration menu
    Copy the full SHA
    33481e6 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2021

  1. Configuration menu
    Copy the full SHA
    24c19ac View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2021

  1. Configuration menu
    Copy the full SHA
    40b4c28 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2021

  1. feat(Apollo): Add "_entities" resolver. (#7334)

    Fixes GRAPHQL-922.
    This PR adds `entity` resolver which resolves `_entities(representation: [Any]!)` queries which are sent by the gateway to the graphql service.
    minhaj-shakeel authored Jan 22, 2021
    Configuration menu
    Copy the full SHA
    bde6364 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    359bac4 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2021

  1. feat(Apollo): Expose mutations to the gateway. (#7358)

    Fixes GRAPHQL-968.
    This PR does two things.
    1 - It exposes the `mutations` to the apollo gateway which were earlier restricted. It exposes mutations for both `type definitions` as well as `type extensions`. Whereas `queries` for the `extended types` are `not exposed` as they are resolved through `entity resolver`.
    2 - It adds support for add mutation on extended type having field with `ID` type as @key field. In this case the field is stored internally in the dgraph as `string` type so its value needs to be given as an argument inside the mutation.
    minhaj-shakeel authored Jan 27, 2021
    Configuration menu
    Copy the full SHA
    1a74997 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6120451 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8297384 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    01fb63f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    30d4934 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    06bee5c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e9a2a14 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2021

  1. Configuration menu
    Copy the full SHA
    b8d2ac7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b9962b8 View commit details
    Browse the repository at this point in the history