22 February 2022
Product catalogExtensibilityGraphQL
You can now extend the ProductSelection resource with Custom Fields. With this, you can add meta-information to your Product Selection in case it is required for your business logic.
Changes:
- [API] Added optional
customfield to ProductSelection and ProductSelectionDraft. - [API] Added Set Custom Type and Set CustomField update actions to Product Selections.
- [GraphQL API] Added the following types to the GraphQL schema:
SetProductSelectionCustomField,SetProductSelectionCustomType. - [GraphQL API] Changed the
ProductSelectiontype:- Added the
customfield to theProductSelectiontype.
- Added the
- [GraphQL API] Changed the
ProductSelectionCreatedPayloadtype:- Added the
customfield to theProductSelectionCreatedPayloadtype.
- Added the
- [GraphQL API] Changed the
IndividualProductSelectionCreatedPayloadtype:- Added the
customfield to theIndividualProductSelectionCreatedPayloadtype.
- Added the
- [GraphQL API] Changed the
ProductSelectionUpdateActiontype:- Input field
setCustomFieldwas added toProductSelectionUpdateActiontype - Input field
setCustomTypewas added toProductSelectionUpdateActiontype
- Input field
- [GraphQL API] Changed the
CreateProductSelectionDrafttype:- Input field
customwas added toCreateProductSelectionDrafttype
- Input field
The following changes were introduced in terms of GraphQL SDL:
extend interface ProductSelectionCreatedPayload {
custom: CustomFieldsType
}
extend type IndividualProductSelectionCreatedPayload {
custom: CustomFieldsType
}
extend input ProductSelectionUpdateAction {
setCustomField: SetProductSelectionCustomField
setCustomType: SetProductSelectionCustomType
}
extend input CreateProductSelectionDraft {
custom: CustomFieldsDraft
}
input SetProductSelectionCustomField {
name: String!
value: String
}
input SetProductSelectionCustomType {
fields: [CustomFieldInput!]
type: ResourceIdentifierInput
typeKey: String
typeId: String
}