Open samislam opened 2 months ago
happy to merge if you find a solution. as far as I remember the mandatory PK + client select being a subset of a mandatory server side set, were more like cheap fixes while we struggled to make a cleaner version work.
Based on the documentation, if you want to enable the
select
feature through the URL query(localhost?select=...)
, you have to ensure doing two things: First you must add theselect
property into thepaginate()
function call:Second You need to ensure that in the
select
option, you're selecting the primary key, for exampleid
:My suggestion is, instead of making it that way, let's make the library itself add the primary key internally, because without that, if someone requests:
It's not going to work and it will return every other column, which makes someone think that there is a bug.
My suggestion is that the library should handle it internally somehow like this: