vendure icon indicating copy to clipboard operation
vendure copied to clipboard

Update Collection ParentId

Open hendrik-advantitge opened this issue 2 years ago • 0 comments

Describe the bug When updating a Collection using the UpdateCollection mutation, the value for parentId is ignored.

To Reproduce Steps to reproduce the behavior:

  1. Create 2 collections with parent = root (= collections 1 and 2)
  2. Create collection 3 with parent = 1
  3. Update collection 3 with
mutation {
  updateCollection(input: {
    id: 3
    parentId: 2
  }) {
    id
    parent { id }
  }
}
  1. Observe parentId will still be 1

Expected behavior ParentId should be updated when updating collection

Environment (please complete the following information):

  • @vendure/core version: 1.7.1

hendrik-advantitge avatar Sep 23 '22 07:09 hendrik-advantitge