All Release Notes
Add Channel GraphQL mutations
3 January 2020
Composable Commerce
HTTP API
Enhancement
GraphQL
- [GraphQL API] Changed the
Mutation
type:- Added the
createChannel
field to theMutation
type. - Added the
updateChannel
field to theMutation
type. - Added the
deleteChannel
field to theMutation
type.
- Added the
- [GraphQL API] Added the following types to the GraphQL schema:
ChannelDraft
,GeometryInput
,ChannelUpdateAction
,SetChannelRoles
,AddChannelRoles
,RemoveChannelRoles
,ChangeChannelDescription
,ChangeChannelKey
,ChangeChannelName
,SetChannelAddress
,SetChannelCustomField
,SetChannelCustomType
,SetChannelGeoLocation
.
Introduced the following changes to the GraphQL schema (in SDL format):
extend type Mutation {createChannel(draft: ChannelDraft!): ChannelupdateChannel(id: String!, version: Long!, actions: [ChannelUpdateAction!]!): ChanneldeleteChannel(id: String!, version: Long!): Channel}input ChannelDraft {key: String!roles: [ChannelRole!]!name: [LocalizedStringItemInputType!]description: [LocalizedStringItemInputType!]custom: CustomFieldsDraftaddress: AddressInputgeoLocation: GeometryInput}input GeometryInput {type: String!coordinates: [Float!]}input ChannelUpdateAction {setRoles: SetChannelRolesaddRoles: AddChannelRolesremoveRoles: RemoveChannelRoleschangeDescription: ChangeChannelDescriptionchangeKey: ChangeChannelKeychangeName: ChangeChannelNamesetAddress: SetChannelAddresssetCustomField: SetChannelCustomFieldsetCustomType: SetChannelCustomTypesetGeoLocation: SetChannelGeoLocation}input SetChannelRoles {roles: [ChannelRole!]!}input AddChannelRoles {roles: [ChannelRole!]!}input RemoveChannelRoles {roles: [ChannelRole!]!}input ChangeChannelDescription {description: [LocalizedStringItemInputType!]}input ChangeChannelKey {key: String!}input ChangeChannelName {name: [LocalizedStringItemInputType!]}input SetChannelAddress {address: AddressInput}input SetChannelCustomField {name: String!value: String}input SetChannelCustomType {fields: [CustomFieldInput!]type: ResourceIdentifierInputtypeKey: StringtypeId: String}input SetChannelGeoLocation {geoLocation: GeometryInput}