apollo-server-integration-testing icon indicating copy to clipboard operation
apollo-server-integration-testing copied to clipboard

Update apollo dependencies

Open thmsobrmlr opened this issue 3 years ago • 5 comments

Updates apollo dependencies for compatibility with version 3.

Note: I'm currently running into issues with this fork and type-graphql:

Cannot use GraphQLSchema "[object GraphQLSchema]" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.

thmsobrmlr avatar Aug 04 '21 21:08 thmsobrmlr

Hi, I just tried this in my project, and it's working fine with [email protected]. Would love to use this package once this PR is merged :smile:

Je12emy avatar Oct 03 '21 05:10 Je12emy

I'm just now trying to upgrade a repo to Apollo Server 3 that's using apollo-server-integration-testing for integration testing, so we'd also love to see a release. Maybe it could be alpha tagged if you're unsure about the issues with type-graphql for the time being?

dchambers avatar Oct 06 '21 09:10 dchambers

I'm just now trying to upgrade a repo to Apollo Server 3 that's using apollo-server-integration-testing for integration testing, so we'd also love to see a release. Maybe it could be alpha tagged if you're unsure about the issues with type-graphql for the time being?

In case it helps anyone, I worked around this by forcing the upgrade using the resolution block in package.json, like so:

    "resolutions": {
        "apollo-server-integration-testing@npm:3.0.0/apollo-server-core": "^3.1.2",
        "apollo-server-integration-testing@npm:3.0.0/apollo-server-express": "^3.1.2"
    }

dchambers avatar Oct 16 '21 10:10 dchambers

With Yarn, I have succeeded with:

"resolutions": {
  "apollo-server-integration-testing/apollo-server-core": "^3.6.1",
  "apollo-server-integration-testing/apollo-server-express": "^3.6.1"
}

devxoul avatar Jan 03 '22 17:01 devxoul

@devxoul https://github.com/zapier/apollo-server-integration-testing/pull/22

lukasbals avatar Apr 02 '22 09:04 lukasbals

Fixed by https://github.com/zapier/apollo-server-integration-testing/pull/22

thmsobrmlr avatar Dec 30 '22 20:12 thmsobrmlr