mirror of
https://github.com/mozilla/fxa.git
synced 2025-12-13 20:36:41 +01:00
Because: - We want to use Strapi 5 This commit: - Upgrades our queries and libraries to use Strapi 5 Closes FXA-10454
39 lines
1003 B
TypeScript
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`);
|