question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Overview

With the advent of Apollo 3, the ApolloClient, some breaking changes were introduced, including centralization of imports and typedef changes. These changes cause apps that have migrated to Apollo 3 and are currently using graphql-testing to load additional packages that now are part of @apollo/client.

That being said, I wanted to confirm that supporting Apollo 3 is something that’s on the roadmap and also offer to create a PR to perform the initial migration if that’s the case (and no one’s currently working on it).

Type

  • New feature
  • Changes to existing features

Motivation

Client apps that are consuming the library and have migrated to Apollo 3 will load additional packages on their dependency graph, such as:

  • apollo-cache-inmemory
  • apollo-client
  • apollo-link

One additional example of a breaking change is that the GraphQL type (from graphql-controller.ts) is using the ApolloClient type from apollo-client, which doesn’t contain the setLink method, now present in the Apollo client exported by @apollo/client, causing errors when matching types from the library and this library.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
atesgoralcommented, May 28, 2021

While we have our in-house non-Apollo solution, migrating to Apollo 3 is once on our short-term roadmap. Reopened this.

2reactions
jcteaguecommented, May 27, 2021

I made a fork of the graphql-testing library and updated it to work with Apollo 3. So far it’s working for us, but there could be some edge cases that needs updating. https://github.com/jcteague/graphql-testing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating to Apollo Client 3.0 - Apollo GraphQL Docs
It now supports garbage collection, storage of both normalized and non-normalized data, and the customization of cached data with new TypePolicy and FieldPolicy ......
Read more >
Apollo 3 | Empowering Engagement in the Classroom
We will right-size your infrastructure and offer onsite support, a live local help desk 24/7/365, and customized security options that will keep your ......
Read more >
Releases · apollographql/apollo-kotlin - GitHub
Apollo Kotlin can be configured to work with multiple services and have the package name, schema files location, and other options specified for...
Read more >
apollo-coroutines-support : 3.0.0-dev7 - Maven Central
Apollo GraphQL Kotlin coroutines Support - Apollo GraphQL Kotlin coroutines bindings. ... com.apollographql.apollo3:apollo-coroutines-support: 3.0.0-dev7.
Read more >
From vue-apollo 3
... together to add more features (like batching, offline support and more). ... import Vue from 'vue' import { ApolloClient } from 'apollo-client'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found