paginate icon indicating copy to clipboard operation
paginate copied to clipboard

paginate - Gorm Pagination Library

Results 6 paginate issues
Sort by recently updated
recently updated
newest added

is it possible to limit max page size by server-side? like i don't want to let user query data such as `?size=100000000`

Hello dear friend, According to the GORM documentation, the offset should be configured as follows: https://gorm.io/docs/scopes.html#Pagination `offset := (page - 1) * pageSize` However, in your code, you have set...

Set gorm.Config.QueryFields must be **false** Because it can be causes some errors on showing data, the selector will be like this ` SELECT "s"."id","s"."sort","s"."status","s"."created_at","s"."updated_at","s"."deleted_at","s"."creator_id","s"."modifier_id","s"."integration_partner_id","s"."payment_gateway_id","s"."merchant_id","s"."terminal_id","s"."channel_code","s"."currency_id","s"."transaction_url","s"."notification_url","s"."client_key","s"."server_key","s"."bank_id","s"."virtual_account_number","s"."convenience_store_code" FROM `

- mlike filter allows to search using like in many fields - example http://localhost:3000/?filters=["name,summart,title","mlike","john"] ```sql SELECT * FROM user WHERE name LIKE '%john%' OR summary LIKE '%john%' OR title LIKE...