All Release Notes
Changes in the GraphQL schema
20 July 2018
Enhancement
CustomersGraphQL
- [GraphQL API] Following types were added in the GraphQL schema:
ChangeCustomerGroupName
,CustomerGroupDraft
,CustomerGroupUpdateAction
,SetCustomerGroupCustomField
,SetCustomerGroupCustomType
,SetCustomerGroupKey
. - [GraphQL API] Type
CustomerGroup
was changed:- Field
customFieldsRaw
was added toCustomerGroup
type
- Field
- [GraphQL API] Type
Mutation
was changed:- Field
updateCustomerGroup
was added toMutation
type - Field
deleteCustomerGroup
was added toMutation
type - Field
createCustomerGroup
was added toMutation
type
- Field
Following changes were introduced in the GraphQL schema (in SDL format):
extend type CustomerGroup {"This field contains non-typed data. Consider using `customFields` as a typed alternative."customFieldsRaw("""The names of the custom fields to include.If neither `includeNames` nor `excludeNames` are provided, then all custom fields are returned."""includeNames: [String!],"""The names of the custom fields to exclude.If neither `includeNames` nor `excludeNames` are provided, then all custom fields are returned."""excludeNames: [String!]): [RawCustomField!]}extend type Mutation {createCustomerGroup(draft: CustomerGroupDraft!): CustomerGroupdeleteCustomerGroup("Queries with specified ID"id: String,"Queries with specified key"key: String, version: Long!): CustomerGroupupdateCustomerGroup("Queries with specified ID"id: String,"Queries with specified key"key: String, version: Long!, actions: [CustomerGroupUpdateAction!]!): CustomerGroup}input ChangeCustomerGroupName {name: String!}input CustomerGroupDraft {groupName: String!key: Stringcustom: CustomFieldsDraft}input CustomerGroupUpdateAction {changeName: ChangeCustomerGroupNamesetKey: SetCustomerGroupKeysetCustomType: SetCustomerGroupCustomTypesetCustomField: SetCustomerGroupCustomField}input SetCustomerGroupCustomField {name: String!value: String}input SetCustomerGroupCustomType {typeId: StringtypeKey: Stringtype: ResourceIdentifierInputfields: [CustomFieldInput!]}input SetCustomerGroupKey {key: String}