Skip to content

docs: addSelect #5438

Closed Answered by B4nan
ramzini22 asked this question in Q&A
Apr 10, 2024 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

qb.addSelect expects property names, if you want to use a raw query, you need to wrap it first, either via raw() or the sql template function (https://mikro-orm.io/docs/raw-queries).

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@B4nan
Comment options

@ramzini22
Comment options

@ramzini22
Comment options

@B4nan
Comment options

@ramzini22
Comment options

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

This discussion was converted from issue #5437 on April 10, 2024 08:37.