-
-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Implement support for ToMany relation array syntax in URL patterns #355
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
base: master
Are you sure you want to change the base?
Conversation
|
…, and update playground content types with new relations and fields.
| @@ -0,0 +1,5 @@ | |||
| { | |||
| "recommendations": [ | |||
| "editorconfig.editorconfig" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this recommendation file to remind the developer to install EditorConfig and set up tab-size indentation.
What does it do?
This pull request introduces enhanced support for relation fields—especially "ToMany" (array) relations—in the URL pattern service, along with expanded test coverage and updates to content type schemas to reflect these capabilities. The changes improve how URL patterns can reference and resolve fields within related entities, including those with array indices and dashed/underscored relation names. Additionally, editor and VSCode configuration files are updated for consistency and improved developer experience.
Enhancements to URL Pattern Service:
[categories[0].slug]and handling both dashed and underscored relation names. [1] [2]Testing Improvements:
Schema Updates:
private-categoryandtestcontent type schemas to use many-to-many relations, addedurl_aliasrelations, and improved field naming consistency. [1] [2]Developer Experience:
.editorconfigand VSCode extension recommendations to enforce consistent code style and encourage use of EditorConfig. [1] [2]testcontent type.Why is it needed?
Describe the issue you are solving.
How to test it?
Running the application using
bun run playground:developornpm run playground:developCleanShot.2025-11-23.at.11.32.16.mp4
Add validation when the user omits the array index.
Related issue(s)/PR(s)
Let us know if this is related to any issue/pull request