diff --git a/.changeset/mighty-seals-perform.md b/.changeset/mighty-seals-perform.md new file mode 100644 index 00000000000..085e8e12923 --- /dev/null +++ b/.changeset/mighty-seals-perform.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Fix an incorrect string substitution in a warning message. diff --git a/src/core/QueryManager.ts b/src/core/QueryManager.ts index bc78a3bf224..2ee1074a9e0 100644 --- a/src/core/QueryManager.ts +++ b/src/core/QueryManager.ts @@ -946,7 +946,7 @@ export class QueryManager { invariant.warn( typeof nameOrDoc === "string" ? `Unknown query named "%s" requested in refetchQueries options.include array` - : `Unknown query %s requested in refetchQueries options.include array`, + : `Unknown query %o requested in refetchQueries options.include array`, nameOrDoc ); }