Skip to content

Commit

Permalink
change deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
MacondoExpress committed Jan 9, 2025
1 parent c666adc commit 9a87192
Show file tree
Hide file tree
Showing 28 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion packages/graphql/src/schema/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ export const DEPRECATE_OVERWRITE = {
export const DEPRECATE_TYPENAME_IN = {
name: DEPRECATED,
args: {
reason: "The typename_IN filter is deprecated, please use the typename filters instead",
reason: "The typename_IN filter is deprecated, please use the typename filter instead",
},
};
2 changes: 1 addition & 1 deletion packages/graphql/tests/schema/comments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ describe("Comments", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type ProductionsConnection {
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql/tests/schema/connections/interfaces.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ describe("Connection with interfaces", () => {
moviesAggregate: CreatureMoviesAggregateInput
moviesConnection: CreatureMoviesConnectionWhere
typename: [CreatureImplementation!]
typename_IN: [CreatureImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [CreatureImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type CreaturesConnection {
Expand Down Expand Up @@ -806,7 +806,7 @@ describe("Connection with interfaces", () => {
id_IN: [ID]
id_STARTS_WITH: ID
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type ProductionsConnection {
Expand Down
6 changes: 3 additions & 3 deletions packages/graphql/tests/schema/directive-preserve.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ describe("Directive-preserve", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type ProductionsConnection {
Expand Down Expand Up @@ -2519,7 +2519,7 @@ describe("Directive-preserve", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type ProductionsConnection {
Expand Down Expand Up @@ -3457,7 +3457,7 @@ describe("Directive-preserve", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type ProductionsConnection {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ describe("@customResolver directive", () => {
customResolver_IN: [String]
customResolver_STARTS_WITH: String
typename: [UserInterfaceImplementation!]
typename_IN: [UserInterfaceImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [UserInterfaceImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type UserInterfacesConnection {
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/tests/schema/directives/cypher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ describe("Cypher", () => {
NOT: ProductionWhere
OR: [ProductionWhere!]
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type ProductionsConnection {
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/tests/schema/directives/default.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ describe("@default directive", () => {
toBeOverridden_IN: [String!]
toBeOverridden_STARTS_WITH: String
typename: [UserInterfaceImplementation!]
typename_IN: [UserInterfaceImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [UserInterfaceImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type UserInterfacesConnection {
Expand Down
6 changes: 3 additions & 3 deletions packages/graphql/tests/schema/directives/filterable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5892,7 +5892,7 @@ describe("@filterable directive", () => {
NOT: PersonWhere
OR: [PersonWhere!]
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
username: String @deprecated(reason: \\"Please use the explicit _EQ version\\")
username_CONTAINS: String
username_ENDS_WITH: String
Expand Down Expand Up @@ -6589,7 +6589,7 @@ describe("@filterable directive", () => {
NOT: PersonWhere
OR: [PersonWhere!]
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
username: String @deprecated(reason: \\"Please use the explicit _EQ version\\")
username_CONTAINS: String
username_ENDS_WITH: String
Expand Down Expand Up @@ -7251,7 +7251,7 @@ describe("@filterable directive", () => {
NOT: PersonWhere
OR: [PersonWhere!]
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
username: String @deprecated(reason: \\"Please use the explicit _EQ version\\")
username_CONTAINS: String
username_ENDS_WITH: String
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql/tests/schema/directives/private.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ describe("@private directive", () => {
id_IN: [ID]
id_STARTS_WITH: ID
typename: [UserInterfaceImplementation!]
typename_IN: [UserInterfaceImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [UserInterfaceImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type UserInterfacesConnection {
Expand Down Expand Up @@ -395,7 +395,7 @@ describe("@private directive", () => {
id_IN: [ID]
id_STARTS_WITH: ID
typename: [UserInterfaceImplementation!]
typename_IN: [UserInterfaceImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [UserInterfaceImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}
type UserInterfacesConnection {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ describe("@relationship directive, aggregate argument", () => {
password_IN: [String!]
password_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
username: String @deprecated(reason: \\"Please use the explicit _EQ version\\")
username_CONTAINS: String
username_ENDS_WITH: String
Expand Down Expand Up @@ -1851,7 +1851,7 @@ describe("@relationship directive, aggregate argument", () => {
password_IN: [String!]
password_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
username: String @deprecated(reason: \\"Please use the explicit _EQ version\\")
username_CONTAINS: String
username_ENDS_WITH: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8351,7 +8351,7 @@ describe("Relationship nested operations", () => {
name_IN: [String]
name_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type Query {
Expand Down Expand Up @@ -8839,7 +8839,7 @@ describe("Relationship nested operations", () => {
name_IN: [String]
name_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type Query {
Expand Down Expand Up @@ -9326,7 +9326,7 @@ describe("Relationship nested operations", () => {
name_IN: [String]
name_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type Query {
Expand Down Expand Up @@ -9809,7 +9809,7 @@ describe("Relationship nested operations", () => {
name_IN: [String]
name_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type Query {
Expand Down Expand Up @@ -10291,7 +10291,7 @@ describe("Relationship nested operations", () => {
name_IN: [String]
name_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type Query {
Expand Down Expand Up @@ -10769,7 +10769,7 @@ describe("Relationship nested operations", () => {
name_IN: [String]
name_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type Query {
Expand Down Expand Up @@ -11395,7 +11395,7 @@ describe("Relationship nested operations", () => {
name_IN: [String]
name_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type Query {
Expand Down Expand Up @@ -11997,7 +11997,7 @@ describe("Relationship nested operations", () => {
name_IN: [String]
name_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type Query {
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql/tests/schema/directives/selectable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2852,7 +2852,7 @@ describe("@selectable", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type ProductionsConnection {
Expand Down Expand Up @@ -3413,7 +3413,7 @@ describe("@selectable", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type ProductionsConnection {
Expand Down
8 changes: 4 additions & 4 deletions packages/graphql/tests/schema/directives/settable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5031,7 +5031,7 @@ describe("@settable", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type ProductionsConnection {
Expand Down Expand Up @@ -5568,7 +5568,7 @@ describe("@settable", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type ProductionsConnection {
Expand Down Expand Up @@ -6347,7 +6347,7 @@ describe("@settable", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type ProductionsConnection {
Expand Down Expand Up @@ -7267,7 +7267,7 @@ describe("@settable", () => {
title_IN: [String!]
title_STARTS_WITH: String
typename: [ProductionImplementation!]
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [ProductionImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type ProductionsConnection {
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/tests/schema/inheritance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ describe("inheritance", () => {
name_IN: [String]
name_STARTS_WITH: String
typename: [PersonImplementation!]
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filters instead\\")
typename_IN: [PersonImplementation!] @deprecated(reason: \\"The typename_IN filter is deprecated, please use the typename filter instead\\")
}

type Query {
Expand Down
Loading

0 comments on commit 9a87192

Please sign in to comment.