How to use the ref function from knex

Find comprehensive JavaScript knex.ref code examples handpicked from public code repositorys.

34
35
36
37
38
39
40
41
42
43

//const data = await knex.select('id as identifier').from('users');
//const data = await knex.select(knex.ref('id').as('identifier')).from('users');

// const data = await knex
//   .select(knex.ref('id'), knex.ref('login'))
//   .from('users');
// const data = await knex
//   .select(knex.ref('id').as('identifier'))
//   .select(knex.ref('login').as('name'))
fork icon0
star icon0
watch icon1

+ 2 other calls in file