Closed korywka closed 2 years ago
Right now there's no specific method to get only one row as object, but that's something desirable to add. I wonder what such method should be named.
IMHO the naming is now a bit confusing: .get
returns array and .all
returns object. I expected them to return the same data structure (after using .get
I expected .all
to be array of arrays, but found bug and went to read the documentation).
Maybe the new naming will become a little more obvious.
Maybe get
should return object and value
can be the new method with current behaviour of get.
Current
.get
returns an array, and you have to map keys and values again to create object.Or something like that:
Maybe I have missed something in docs.