Fix codegen and missing track mutation (#11928)

Track mutation was recently renamed TrackAnalytics which broke
apollo.factory.test.ts specs due to signature mismatch. This also broke
other surfaces depending on this such as codegen.
I've also ran codegen since it was a bit outdated
This commit is contained in:
Weiko
2025-05-07 17:11:00 +02:00
committed by GitHub
parent 590aaa1fd4
commit 09850c827f
3 changed files with 78 additions and 60 deletions

View File

@ -48,8 +48,18 @@ const makeRequest = async () => {
await client.mutate({
mutation: gql`
mutation Track($action: String!, $payload: JSON!) {
track(action: $action, payload: $payload) {
mutation TrackAnalytics(
$type: AnalyticsType!
$event: String
$name: String
$properties: JSON
) {
trackAnalytics(
type: $type
event: $event
name: $name
properties: $properties
) {
success
}
}