We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've created a query
const customerProducts = await knex.select([ 'CustomerProduct.id', 'CustomerProduct.last_delivered AS lastDelivered', 'CustomerProduct.customer_id AS customerId', 'product.id', 'product.title', 'product.code', ]) .from('customer_products AS CustomerProduct') .innerJoin('products AS product', 'CustomerProduct.product_id', 'product.id') .where(whereClause) .limit(limit) .offset(offset); knexnest(customerProducts).then(function (data) { result = data; }); return result;
When I try to execute this code I get this error:
TypeError: Cannot read property 'config' of undefined
I'm not sure why I should get it though.
The text was updated successfully, but these errors were encountered:
I ran into this. Don't await the knex.select. Await the knexnest promise instead.
Sorry, something went wrong.
No branches or pull requests
I've created a query
When I try to execute this code I get this error:
I'm not sure why I should get it though.
The text was updated successfully, but these errors were encountered: