Skip to content

Allow excluding fields from query instead of including them #629

@Torgen

Description

@Torgen

Please summarize your feature request

Add method to query builder to exclude fields from result. All fields not excluded are in result.

Describe the functionality you're seeking in more detail

If my model contains a blob, and I don't always want to load the blob to save load on the database, it's a lot less work to say "don't load the blob" than to say "for each field that isn't the blob, do load that field". Expecting the new method would be field(exclude:) and it would not be allowed to mix exclude with include.

Have you considered any alternatives?

Listing every field except the one I want to exclude.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions