Steps to reproduce
(First please check that this issue is not already solved as described
here)
find will always return records with an id, and while this is often useful, it makes it difficult to customize the query with something like distinct or group by.
An example, including a workaround, are available at https://gist.github.com/jordanbtucker/30d403170e3104b841f7195d25ba6101.
Expected behavior
There should be a way to remove the id column from a query.
Actual behavior
The id column is included in queries, which is problematic when you want to alter the query with something like distinct as explained in Customizing the query.
System configuration
Module versions (especially the part that's not working):
"feathers-knex": "^7.1.0",
"knex": "^0.21.1",
"mysql": "^2.18.1",
NodeJS version:
v12.18.1
Steps to reproduce
(First please check that this issue is not already solved as described
here)
findwill always return records with anid, and while this is often useful, it makes it difficult to customize the query with something likedistinctorgroup by.An example, including a workaround, are available at https://gist.github.com/jordanbtucker/30d403170e3104b841f7195d25ba6101.
Expected behavior
There should be a way to remove the
idcolumn from a query.Actual behavior
The
idcolumn is included in queries, which is problematic when you want to alter the query with something likedistinctas explained in Customizing the query.System configuration
Module versions (especially the part that's not working):
NodeJS version:
v12.18.1