Joystream / Joystream/joystream
CLI: addTypename is deprecated
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Replace `addTypename` calls, see [.apollographql.com/docs](https://www.apollographql.com/docs/react/errors#%7B%22version%22%3A%223.14.0%22%2C%22message%22%3A104%2C%22args%22%3A%5B%22InMemoryCache%22%2C%22addTypename%22%2C%22Please%20remove%20the%20%60addTypename%60%20option%20when%20initializing%20%60InMemoryCache%60.%22%5D%7D)
```
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.mjs: addTypename: !rawConfig.skipTypename,
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.mjs: ...(this.config.addTypename
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.mjs: addTypename: !rawConfig.skipTypename,
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.mjs: get addTypename() {
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.mjs: return this._parsedConfig.addTypename;
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.mjs: const typeInfoField = this.buildTypeNameField(parentSchemaType, this._config.nonOptionalTypename, this._config.addTypename, requireTypename, this._config.skipTypeNameForRoot);
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.mjs: buildTypeNameField(type, nonOptionalTypename = this._config.nonOptionalTypename, addTypename = this._config.addTypename, queriedForTypename = this._queriedForTypename, skipTypeNameForRoot = this._config.skipTypeNameForRoot) {
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.mjs: if (nonOptionalTypename || addTypename || queriedForTypename) {
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.mjs: if (!this._config.addTypename) {
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/base-visitor.d.ts: addTypename: boolean;
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.js: addTypename: !rawConfig.skipTypename,
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.js: ...(this.config.addTypename
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.js: addTypename: !rawConfig.skipTypename,
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.js: get addTypename() {
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.js: return this._parsedConfig.addTypename;
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.js: const typeInfoField = this.buildTypeNameField(parentSchemaType, this._config.nonOptionalTypename, this._config.addTypename, requireTypename, this._config.skipTypeNameForRoot);
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.js: buildTypeNameField(type, nonOptionalTypename = this._config.nonOptionalTypename, addTypename = this._config.addTypename, queriedForTypename = this._queriedForTypename, skipTypeNameForRoot = this._config.skipTypeNameForRoot) {
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.js: if (nonOptionalTypename || addTypename || queriedForTypename) {
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/index.js: if (!this._config.addTypename) {
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/base-documents-visitor.d.ts: addTypename: boolean;
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/base-documents-visitor.d.ts: get addTypename(): boolean;
../joystream/cli/node_modules/@graphql-codegen/visitor-plugin-common/selection-set-to-object.d.ts: protected buildTypeNameField(type: GraphQLObjectType, nonOptionalTypename?: boolean, addTypename?: boolean, queriedForTypename?: boolean, skipTypeNameForRoot?: boolean): {
../joystream/cli/src/QueryNodeApi.ts: cache: new InMemoryCache({ addTypename: false }),
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.