Skip to content

Commit 1919e66

Browse files
authored
Augment new warning from #7184 (#7185)
1 parent b1548c1 commit 1919e66

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changeset/honest-toys-fetch.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/server/src/plugin/usageReporting/plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ export function ApolloServerPluginUsageReporting<TContext extends BaseContext>(
130130
logger.warn(
131131
'You have installed `ApolloServerPluginUsageReporting` but this server appears to ' +
132132
'be a subgraph. Typically usage reports are sent to Apollo by your Router ' +
133-
'or Gateway, not directly from your subgraph.',
133+
'or Gateway, not directly from your subgraph. If this was unintentional, remove ' +
134+
"`ApolloServerPluginUsageReporting` from your server's `plugins` array.",
134135
);
135136
}
136137
}

0 commit comments

Comments
 (0)