Hey, could you please guide me with the graphql query that is using fragments. Without fragments graphql queries are working fine and Mock Service Worker is serving results as expected.
But this one query is not using msw and is still making request to the actual api.
query FeaturesQuery($site: String!) {
features {
...FeaturesFragment
}
}
fragment FeaturesFragment on Features {
__typename
id
automaticFeaturedEventsEnabled: isFlagActive(site: $site, name: "automaticFeaturedEvents")
is2MeeEnabled: isFlagActive(site: $site, name: "is2MeeEnabled")
}
Hey, could you please guide me with the graphql query that is using fragments. Without fragments graphql queries are working fine and Mock Service Worker is serving results as expected.
But this one query is not using msw and is still making request to the actual api.
In msw handlers I've defined just
How should I tweak the query so that msw would understand it?