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:
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user