I tested the “Build a selling plan” example:
- exactly as shown: it does work even though the graphql spec says the options must be a string.
- If I then change the
SellingPlanGroupInput.option
to an array with the same single element, it works the same. - If I then add a second element to
SellingPlanGroupInput.option
, it errors:"Option2 Option2 is required as there is an option2 label defined on the parent selling plan group."
on each example - If I then convert the
SellingPlanInput.option
for each to a 2-element array, it works again. - If I then remove an element so the
SellingPlanGroupInput.option
is a single element but the sellingPlans have two elements, it errorsOption2 Cannot define option2 on this selling plan as there is no label on the parent selling plan group.
So, based on the graphql responses:
- the
SellingPlanGroupInput.option
is not a list of all options as stated in the docs. it is a DESCRIPTION of the selling plan options. - The examples and graphql accept a union
String! | [String!]
despite the docs which state only an array is allowed.