Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dkarlovi opened this issue Nov 23, 2023 · 0 comments

Comments

@dkarlovi
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants