feat: Implement support for ToMany relation array syntax in URL patterns#355
Open
candidosales wants to merge 9 commits intopluginpal:masterfrom
Open
feat: Implement support for ToMany relation array syntax in URL patterns#355candidosales wants to merge 9 commits intopluginpal:masterfrom
candidosales wants to merge 9 commits intopluginpal:masterfrom
Conversation
|
…, and update playground content types with new relations and fields.
candidosales
commented
Nov 23, 2025
| @@ -0,0 +1,5 @@ | |||
| { | |||
| "recommendations": [ | |||
| "editorconfig.editorconfig" | |||
Author
There was a problem hiding this comment.
Added this recommendation file to remind the developer to install EditorConfig and set up tab-size indentation.
This was referenced Nov 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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