Files
firefox-accounts-mirror/libs/shared/cms/src/lib/queries/capability-service-by-plan-ids/query.ts
julianpoyourow b32169036f chore(shared-cms): strapi 5 upgrade
Because:

- We want to use Strapi 5

This commit:

- Upgrades our queries and libraries to use Strapi 5

Closes FXA-10454
2024-10-07 18:19:58 +00:00

39 lines
1003 B
TypeScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { graphql } from '../../../__generated__/gql';
export const capabilityServiceByPlanIdsQuery = graphql(`
query CapabilityServiceByPlanIds($stripePlanIds: [String]!) {
purchases(
filters: {
or: [
{ stripePlanChoices: { stripePlanChoice: { in: $stripePlanIds } } }
{
offering: {
stripeLegacyPlans: { stripeLegacyPlan: { in: $stripePlanIds } }
}
}
]
}
pagination: { limit: 200 }
) {
stripePlanChoices {
stripePlanChoice
}
offering {
stripeLegacyPlans(pagination: { limit: 200 }) {
stripeLegacyPlan
}
capabilities {
slug
services {
oauthClientId
}
}
}
}
}
`);