Open macrozone opened 4 years ago
with "@apollo/react-hooks": "3.1.4", addMocksToSchema no longer works. The resulting schema won't return any data
"@apollo/react-hooks": "3.1.4"
Intended outcome:
using addMocksToSchema should make the apollo client returning mock data
addMocksToSchema
Actual outcome:
it does not return any mock data, data is null always
How to reproduce the issue:
use these versions
"@graphql-tools/mock": "^6.0.12",
and
"@apollo/react-hooks": "^3.1.4",
Version
System: OS: macOS 10.15.5 Binaries: Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node Yarn: 1.21.1 - ~/git/panter/veloplus/veloplus-shop/veloplus-shop-fe/node_modules/.bin/yarn npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm Browsers: Chrome: 83.0.4103.116 Firefox: 76.0.1 Safari: 13.1.1 npmPackages: @apollo/react-hooks: 3.1.4 => 3.1.4 @apollo/react-ssr: 3.1.4 => 3.1.4 apollo: ^2.28.3 => 2.28.3 apollo-boost: ^0.4.3 => 0.4.4 apollo-cache-inmemory: ^1.6.2 => 1.6.3 apollo-link-batch-http: ^1.2.13 => 1.2.13 apollo-link-context: ^1.0.17 => 1.0.19 apollo-link-error: ^1.1.12 => 1.1.12 apollo-link-persisted-queries: ^0.2.2 => 0.2.2 apollo-link-schema: ^1.2.5 => 1.2.5 apollo-upload-client: ^12.1.0 => 12.1.0
additional info
it works with version 3.1.3. so fixing the version is the current resolution.
version 3.1.4 and above are lacking a changelog, so its hard to say if there is a reason for this bug.
with
"@apollo/react-hooks": "3.1.4"
, addMocksToSchema no longer works. The resulting schema won't return any dataIntended outcome:
using
addMocksToSchema
should make the apollo client returning mock dataActual outcome:
it does not return any mock data, data is null always
How to reproduce the issue:
use these versions
"@graphql-tools/mock": "^6.0.12",
and
"@apollo/react-hooks": "^3.1.4",
Version
additional info
it works with version 3.1.3. so fixing the version is the current resolution.
version 3.1.4 and above are lacking a changelog, so its hard to say if there is a reason for this bug.