Commit Graph

101 Commits

Author SHA1 Message Date
Awais
6f47f0cffd
fix: select security bug (#879) 2024-02-27 09:26:52 +01:00
vaidas-dutrys
9d4049beb1
fix: updated searchBy definition to array instead of string (#870) 2024-02-16 09:51:09 +01:00
Jonathan Chapman
ee86e8bdf6
feat: added operators for postgres array column type (#826) 2023-12-04 10:32:05 +01:00
vaidas-dutrys
7a937b19b7
feat: Add sortBy columns to swagger (#800) 2023-11-07 09:34:28 +01:00
John Olubori David
3945809ef8
feat: Add config options to ignore select and searchBy query parameters (#790) 2023-10-25 15:30:56 +02:00
Jonathan Chapman
c47973d063
fix: or filters are grouped together (#774) 2023-10-07 19:50:19 +02:00
Vitalii Samofal
5f64f1ccbf
fix: fixed filtering by entity field that is neither in relations and not loaded eagerly (#770) 2023-10-04 10:20:18 +03:00
Vitalii Samofal
a992f340c5
fix: implemented a proper mechanism for using where condition in paginate options (#759) 2023-09-25 14:58:04 +02:00
Robin De Schepper
6f6b4da9a9
feat: support dot notation syntax for nested relations (#739) 2023-09-09 18:41:35 +02:00
Vitalii Samofal
0eccbc1292
fix: added setting a default type for PaginatedDocumented entity, thi… (#720) 2023-08-25 12:08:21 +02:00
Vitalii Samofal
8eede4b3c4
feat: swagger annotations (#713) 2023-08-24 13:47:45 +02:00
Brenden Palmer
8be8475fa6
fix: detect Express/Fastify requests correctly as of Fastify v4.19.0 (#672) 2023-07-17 08:19:03 +02:00
Robin De Schepper
d328e343a4
fix: add _rel suffix to relationship columns to avoid duplicate columns (#649) 2023-07-16 19:43:36 +02:00
David
245127a74b
fix: on nested relations discovery use alias of parent relation first (#630) 2023-05-23 19:37:08 +02:00
Jonathan Loscalzo
4d20b28070
refactor: add message to named exception (#591) 2023-04-24 08:54:07 +02:00
IZEM
1b2106e13b
fix(types/Column): infer lazy-loaded relations (#584)
This commit updates the Column type to properly infer the relation properties of entities that use lazy loading, instead of inferring the properties of a Promise. This resolves an issue where the Column type would throw type errors when trying to access properties of the relation.
2023-04-13 08:41:59 +02:00
Philipp
878e34ad5b
fix: make take/skip default (#573) 2023-04-02 21:50:28 +02:00
ppetzold
ab24b88702 add coverage for query builder + filter 2023-03-24 19:06:50 +01:00
ppetzold
12dc1b0412 feat: pagination type 2023-03-24 12:06:56 +01:00
ppetzold
b55898d50d add query limit test case 2023-03-22 22:04:46 +01:00
ppetzold
e8705e205b add coverage for nested where 2023-03-22 20:36:20 +01:00
Philipp
9b6aaad032
fix: select handling (#556)
BREAKING CHANGE: We handle query `select` the same way as all other parameters meters. You can only select columns in the query which have been selected in the config.
2023-03-21 20:27:52 +01:00
ppetzold
098216b3cc fix: date column filter with iso dates 2023-03-21 12:11:19 +01:00
ppetzold
bf1edda9c7 fix: lint issue 2023-03-20 20:57:29 +01:00
ppetzold
5cb41f5663 fix: select fields from nested relations 2023-03-20 20:55:30 +01:00
ppetzold
3fa48d4f63 feat: extend filter with enable all ops config 2023-03-18 20:07:48 +01:00
ppetzold
9421b109bc fix: restore postgres default null sort behavior
BREAKING CHANGE: don't mess with default behavior of db driver
2023-03-17 23:24:16 +01:00
ppetzold
73e61950e2 feat: complete postgres coverage 2023-03-17 23:18:22 +01:00
ppetzold
95439bc66f fix: camelcase named virtual columns on postgres 2023-03-17 23:14:59 +01:00
ppetzold
a6648e8d62 fix: align postgres default null sort with docs and improve postgres coverage 2023-03-17 22:23:46 +01:00
Philipp
c42fde65c3
drop take and skip (#545)
BREAKING CHANGE: We remove `paginationType` from config and always use limit/offset. Most current issues seem to be related take/skip. The alleged side effects of limit/offset on many-to-many relations seem to not exist anymore as coverage shows.
2023-03-17 21:39:13 +01:00
Philipp
a6384eb984
fix: search on camelcase fields for postgres (#544) 2023-03-16 20:54:09 +01:00
zkldi
7f0beeb5a7
feat: contains operator (#536) 2023-03-15 11:20:00 +01:00
ppetzold
ae7a60ea78 fix: lint issue 2023-03-14 22:15:49 +01:00
ppetzold
40e35aa64f fix: clean up 2023-03-14 22:12:49 +01:00
ppetzold
d7ccd914d4 fix: clean up 2023-03-14 22:10:23 +01:00
ppetzold
8f7889d1a9 fix naming 2023-03-14 19:31:38 +01:00
David Sanchez
339249ce24 feat: nested search and filter (#509)
BREAKING CHANGE: Embedded fields have to wrapped in brackets e.g. `toys.(size.height)`.
2023-03-14 19:23:36 +01:00
David Sanchez
735b7905c3
feat: allow user to choose between limit/offset and take/skip. (#508) 2023-03-06 09:25:52 +01:00
xMase
c2c6eaf44e
fix: add check on primary key columns to avoid select exception (#507) 2023-03-01 12:23:17 +01:00
Manuel Nascimento
6193ea28df
feat: implement auto EagerLoads in library (#506) 2023-03-01 09:02:13 +01:00
David Sanchez
dabb9913c7
feat: add new feature to allowing nested relations (#499)
Should fix #452, #405
2023-02-23 08:58:47 +01:00
xMase
dbf6786010
feat: select via query param (#463) 2023-02-15 10:16:35 +01:00
ppetzold
9ffd74e87e fix: export FilterOperator and FilterComparator from main lib entry 2023-02-15 09:09:12 +01:00
xMase
53f18bd547
fix: many-to-many relations (#492) 2023-02-15 09:05:52 +01:00
xMase
70c24b00ee
feat: multi filter with $and/$or comperator (#457) 2023-02-09 09:21:09 +01:00
Jacques Germishuys
33df5f294f
feat: introduce starts with () operator (#466) 2023-01-31 17:54:14 +01:00
xMase
77494531d3
feat: virtual column support (#434) 2023-01-30 12:17:14 +01:00
Jacques Germishuys
ff00785cd1
fix: bind ilike/like parameters to prevent sql injection (#465) 2023-01-30 09:19:15 +01:00
Robin De Schepper
30f4b45785
Replaced deprecated Connection API in tests (#451) 2023-01-24 17:59:12 +01:00