Closed bwgjoseph closed 3 years ago
@bwgjoseph I dont see how beneficial this feature is. for instance findById as the name suggest is used to find documents by Id and for extended needs you always have the find method. its more confusing than complementing.
I thought it was standard practice across ODM/ORM as I was developing for the feathers-database-adapter
, there were test cases specifically test for this sort of query
See https://docs.feathersjs.com/api/databases/common.html
And since it's coming from Database common API, and all feathers-adapter
should have it, and that's why I thought this was something is that a norm. But I understand why that would be confusing as well.
Yeah this will be very confusing if we allow selection by other fields in a ById function. I think better to close this one.
I think that's fine at the moment. Will revisit again if I have any strong use-case to support it
Hi,
Currently, querying using
id and query
is not supported. In short, when using*byId
method, it only take in account theid
and not the additional options provided.Similarly, for all other
byId
methodsP.S: As for all operations, to be more specific, it should be the following
I hope I did not miss out any