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
Given the query const query = knex.select(['table.col_a AS _nested_colA','table.col_b AS _nested_colB']);
const query = knex.select(['table.col_a AS _nested_colA','table.col_b AS _nested_colB']);
am I right to assume that with table.col_a as null and table.col_b as foo I should be getting back
table.col_a
null
table.col_b
foo
{ nested: { colA: null, colB: 'foo' } }
However, I get
{ nested: null }
Is this how it should be working or might this be a bug?
The text was updated successfully, but these errors were encountered:
I've forked this project and added test data to hilight the issue: https://github.com/hannupekka/KnexNest/tree/issue/7-nested-objects-return-as-null
The reason for this seems to be at https://github.com/CoursePark/NestHydrationJS/blob/master/NestHydrationJS.js#L98 - if I remove that else block, nested null values seem to get returned properly.
else
Sorry, something went wrong.
No branches or pull requests
Given the query
const query = knex.select(['table.col_a AS _nested_colA','table.col_b AS _nested_colB']);
am I right to assume that with
table.col_a
asnull
andtable.col_b
asfoo
I should be getting backHowever, I get
Is this how it should be working or might this be a bug?
The text was updated successfully, but these errors were encountered: