All Release Notes
Add Channel GraphQL mutations
3 January 2020
Enhancement
GraphQL
- [GraphQL API] Changed the
Mutationtype:- Added the
createChannelfield to theMutationtype. - Added the
updateChannelfield to theMutationtype. - Added the
deleteChannelfield to theMutationtype.
- 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}