Skip to content
Discussion options

You must be logged in to vote

As per qrm wiki:

Destinations are not limited to just generated model types, any destination will work, as long as projection name corresponds to model type name.field name.

At least, that's the idea I got from this example in the wiki.

In this example destination struct is anonymous type(no name). Meaning expected projection alias is .<field name>, which is equivalent to just <field name>.

This is also mentioned in faq.

Without this rule, scanning into named nested types wouldn't be possible.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yurivish
Comment options

@go-jet
Comment options

Answer selected by yurivish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #532 on November 29, 2025 11:56.