All Release Notes
Fixed Reference Expansion input types for Business Unit Messages in the GraphQL API
28 March 2023
Resolved Issue
GraphQLB2B
We fixed the Reference Expansion input types on Business Unit Messages to provide a consistent experience when working with the GraphQL API. Additionally, we updated the type BusinessUnitConfiguration
to align it with the HTTP API. We have also made the roles
field optional on AssociateDraft in the HTTP and GraphQL API to allow creating Associates without having to assign roles.
Changes:
- [API] Changed
roles
field to be optional on AssociateDraft. - [GraphQL API] Changed the
AssociateDraft
type:AssociateDraft.roles
input field type changed from[SimpleAssociateRole!]!
to[SimpleAssociateRole!]
- [GraphQL API] Added the following types to the GraphQL schema:
BusinessUnitConfigurationStatus
. - [GraphQL API] Changed the
BusinessUnitConfiguration
type:BusinessUnitConfiguration.myBusinessUnitStatusOnCreation
field type changed fromBusinessUnitStatus!
toBusinessUnitConfigurationStatus!
- [GraphQL API] Changed the
BusinessUnitStoreAdded
type:BusinessUnitStoreAdded.store
field type changed fromKeyReference!
toStore!
- Added the
storeRef
field to theBusinessUnitStoreAdded
type.
- [GraphQL API] Changed the
BusinessUnitStoresSet
type:BusinessUnitStoresSet.stores
field type changed from[KeyReference!]!
to[Store!]!
- Added the
storesRef
field to theBusinessUnitStoresSet
type.
- [GraphQL API] Changed the
BusinessUnitStoreModeChanged
type:- Added the
oldStoresRef
field to theBusinessUnitStoreModeChanged
type. - Added the
storesRef
field to theBusinessUnitStoreModeChanged
type. BusinessUnitStoreModeChanged.stores
field type changed from[KeyReference!]
to[Store!]
BusinessUnitStoreModeChanged.oldStores
field type changed from[KeyReference!]
to[Store!]
- Added the
- [GraphQL API] Changed the
BusinessUnitParentChanged
type:- Added the
oldParentUnitRef
field to theBusinessUnitParentChanged
type. - Added the
newParentUnitRef
field to theBusinessUnitParentChanged
type. BusinessUnitParentChanged.newParentUnit
field type changed fromKeyReference
toBusinessUnit
BusinessUnitParentChanged.oldParentUnit
field type changed fromKeyReference
toBusinessUnit
- Added the
- [GraphQL API] Changed the
ChangeProjectSettingsMyBusinessUnitStatusOnCreation
type:ChangeProjectSettingsMyBusinessUnitStatusOnCreation.status
input field type changed fromBusinessUnitStatus!
toBusinessUnitConfigurationStatus!
- [GraphQL API] Changed the
BusinessUnitStoreRemoved
type:BusinessUnitStoreRemoved.store
field type changed fromKeyReference!
toStore!
- Added the
storeRef
field to theBusinessUnitStoreRemoved
type.
The following changes were introduced in terms of GraphQL SDL:
extend type BusinessUnitStoreAdded {storeRef: KeyReference!}extend type BusinessUnitStoreModeChanged {oldStoresRef: [KeyReference!]storesRef: [KeyReference!]}extend type BusinessUnitParentChanged {newParentUnitRef: KeyReferenceoldParentUnitRef: KeyReference}extend type BusinessUnitStoreRemoved {storeRef: KeyReference!}extend type BusinessUnitStoresSet {storesRef: [KeyReference!]!}enum BusinessUnitStatusOnCreation {ActiveInactive}