Skip to content

CLI: addTypename is deprecated #5223

Description

@traumschule

Replace addTypename calls, see .apollographql.com/docs

../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 }),

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLICommand Line Interface Tool

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions