Skip to content

Comments

feat: add full include query option#305

Open
mihailkitrozoskicodechem wants to merge 2 commits intomainfrom
feat/add-full-include-query-option
Open

feat: add full include query option#305
mihailkitrozoskicodechem wants to merge 2 commits intomainfrom
feat/add-full-include-query-option

Conversation

@mihailkitrozoskicodechem
Copy link
Collaborator

@mihailkitrozoskicodechem mihailkitrozoskicodechem commented Feb 20, 2026

What Changed?

Add optional 'include=*' query parameter

Why?

The 'include=*' query parameter allows the user to include all the related properties

Type of Change

  • 🐛 Bug fix (fixes an issue without breaking existing functionality)
  • ✨ New feature (adds new functionality without breaking existing features)
  • 💥 Breaking change (existing functionality will be affected)
  • 📝 Documentation update
  • 🔧 Maintenance (refactoring, dependencies, configuration)

How Did You Test This?

What I tested:

Created related entities and manually tested the flow with sending 'include=*' query parameter requests.
Cases with regular, nested includes, no include parameter and faulty includes are covered.

Review Checklist

  • My code follows the project's style and conventions
  • I've reviewed my own code for obvious issues
  • I've added comments where the code might be confusing
  • I've updated relevant documentation (if needed)
  • I've tested my changes and they work as expected

Screenshots / Additional Context

image

@mihailkitrozoskicodechem mihailkitrozoskicodechem changed the title Feat/add full include query option feat: add full include query option Feb 20, 2026
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would need to implement this on our frontend side too.

When i go to the "Content Manager", I do not get the count or related models now

Image Image

}}

var shouldApplyFullIncludes = HttpContext.Request.Query[""include""]
.SelectMany(includeValue => includeValue
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check includeValue if null - this generates a warning

return query;
}}

private IQueryable<{item.ClassName}> ApplyFullIncludes(IQueryable<{item.ClassName}> query)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check for formatting

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants