Open soimon opened 1 year ago
I apologise for the overdue feedback, let me know if you have interest in updating the PR to the current state. I think this would be a great feature to add to the library.
I apologise for the overdue feedback, let me know if you have interest in updating the PR to the current state. I think this would be a great feature to add to the library.
No problem. I have completed the project that prompted my pull request streak, but I'll revisit this when I have the time again. In my last attempt, I reached the limit of my TypeScript typing ability. If that's still the case, I'll share the steps I'm struggling with to better clarify the issue.
This PR is a first attempt at typing the
childProps
argument inProperties.children()
.It even includes rudimentary autocompletion for nesting children:
I haven't managed to get autocompletion working when the nested child is an array type though:
Once this bug is ironed out of the type definitions, you should be able to recursively select anything you want in one query (as far as I could tell the js on the M4L side already supports nesting).