I am trying to create a new subscription, but am getting ‘sellingPlanGroupCreate’ doesn’t exist on type ‘Mutation’. I am using the example on Create and manage selling plans (shopify.dev)
mutation {
sellingPlanGroupCreate(
input: {
name: "Subscribe and save"
merchantCode: "subscribe-and-save"
options: ["Delivery every"]
position: 1
sellingPlansToCreate: [
{
name: "Delivered every week"
options: "1 Week(s)"
position: 1
billingPolicy: { recurring: { interval: WEEK, intervalCount: 1 } }
deliveryPolicy: { recurring: { interval: WEEK, intervalCount: 1 } }
pricingPolicies: [
{
fixed: {
adjustmentType: PERCENTAGE
adjustmentValue: { percentage: 15.0 }
}
}
]
}
]
}
resources: { productIds: ["gid://shopify/Product/6150550323354"], productVariantIds: [] }
) {
sellingPlanGroup {
id
}
userErrors {
field
message
}
}
}