nestjs-knex icon indicating copy to clipboard operation
nestjs-knex copied to clipboard

How to create table from QueryBuilder?

Open golubvladimir opened this issue 3 years ago • 0 comments

I have union query

queryKnex = queryKnex.union(queryKnex2);

I want to create table from it query and add alias?

      let queryUnion = this.knex({ 'random_name': queryKnex })
        .select('*')

How to do it right?

golubvladimir avatar Sep 24 '21 09:09 golubvladimir