Skip to content

[Improvement]: create folder GraphQL endpoints should recursively create folders #821

@dkarlovi

Description

@dkarlovi

Improvement description

Currently, you need to manually create folders at each level by passing parent and key.

A much nicer UX would be to do it all in one go, meaning you create the folders recursively just like Pimcore already allows:

mutation {
  createObjectFolder(
    path:"/foo/bar"
    key:"bat"
  ) {
    id
    success
    message
  }
}

This would created /foo/bar/bat regardless if parents exist or not. If they don't, the request auto-creates them. This could be opt-in with a feature flag like recurse: true.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions