Dan Ribbens
12edb1cc4b
fix: query localized fields without localization configured
2023-04-21 21:12:30 -04:00
James
086feafcb7
chore: cleans duplicative logic
2023-04-17 16:56:38 -04:00
Dan Ribbens
959a5d78c7
chore: test coverage queries
2023-04-17 16:43:00 -04:00
James
995054d46b
chore: adds tests to validate queries
2023-04-17 16:25:07 -04:00
James
d187b809d7
feat: refactors buildQuery to rely on fields instead of mongoose
2023-04-17 16:08:44 -04:00
James
2d0441a72e
chore: begins work to build queries from fields instead of mongoose schema
2023-04-14 15:52:38 -04:00
Jarrod Flesch
ace032ef89
fix: minimize not set to false on all field type schemas
2023-03-06 16:08:03 -05:00
James Mikrut
f7a2ae7e55
Merge pull request #2206 from payloadcms/fix/2189-empty-json
...
fix: allows empty objects to be retained in db
2023-02-28 10:45:46 -05:00
Jarrod Flesch
0247e2d106
fix: allows empty objects to be retained in db
2023-02-28 10:40:21 -05:00
James
ac54b11f9d
fix : #2150 , can now query on N number of levels deep
2023-02-27 16:17:44 -05:00
James
cbfabeeb9d
chore: fixes bad import
2023-02-21 17:46:56 -05:00
Dan Ribbens
5888fb9b3f
fix: mongoose connection error with useFacet
2023-02-21 14:29:42 -05:00
James
15b6bb3d75
fix : #2148 , adds queryHiddenFields property to find operation
2023-02-20 21:15:06 -05:00
James
1930bc260e
fix: ensures only valid fields can be queried on
2023-02-17 16:45:18 -05:00
PatrikKozak
453a9036be
fix: relation to many index unique fields ( #1979 )
2023-01-30 16:24:59 -05:00
Jarrod Flesch
ee682270a4
Merge remote-tracking branch 'origin' into feat/1695-nullable-localized-array-and-blocks
2023-01-09 16:19:11 -05:00
Jarrod Flesch
001a68f45c
chore: adjusts block and array schemas to store undefined instead of empty arrays by default
2023-01-06 16:56:26 -05:00
Jarrod Flesch
a0181a0eee
Merge branch 'master' into feat/json-field
2023-01-03 10:03:16 -05:00
James
ecfb363169
fix : #1786 , relationship with hasMany no longer sets empty array as default value
2023-01-02 15:49:19 -05:00
Jessica Boezwinkle
28d9f9009c
feat: adds initial json field
2022-12-15 18:32:11 +00:00
PatrikKozak
80da898de8
fix: adds draftsEnabled to baseSchema for tabs / arrays / groups & allows for null enum
2022-12-14 14:41:41 -05:00
Dan Ribbens
756edb858a
fix: Select with hasMany and localized ( #1636 )
2022-12-09 09:36:39 -05:00
Jarrod Flesch
dce2081663
fix: aligns mongoose PaginatedDocs type with actual lib type
2022-11-30 22:17:38 -05:00
Dan Ribbens
785b992c3e
fix: indexSortableFields not respected
2022-10-17 20:17:55 -04:00
James
b4becd1493
fix : #1204
2022-10-06 13:11:25 -04:00
James Mikrut
a1083727ef
feat: #1001 - builds a way to allow list view to search multiple fields
...
* make textfields searchable
* shorten namings in placeholder function
* chore: finishes listSearchableFields
Co-authored-by: Christian Reichart <christian.reichart@camperboys.com >
2022-09-12 16:38:02 -07:00
James
ad4f7a5fff
chore: fixes and cleanup
2022-09-11 20:07:02 -07:00
James
cd209379b2
chore: merge master
2022-09-11 18:07:05 -07:00
Elliot DeNolf
b7e5828adc
feat: cyrillic like query support ( #1078 )
2022-09-06 16:47:57 -04:00
Wesley
c3a0bd8625
fix: implement the same word boundary search as the like query ( #1038 )
...
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
2022-09-01 13:03:21 -04:00
James
a73c391c2c
fix : #953
2022-08-29 15:41:59 -07:00
Dan Ribbens
39586d3cdb
fix: missing fields in rows on custom id collections ( #954 )
2022-08-18 12:26:05 -04:00
James
078e8dcc51
feat: ensures you can query on blocks via specifying locale or not specifying locale
2022-08-15 17:59:08 -07:00
James
b1a1575122
fix : #939
2022-08-15 17:58:59 -07:00
Dan Ribbens
2ca526bd22
chore: simplifies index creation
2022-08-15 16:54:23 -04:00
James
48f929f3ab
chore: begins to simplify index creation
2022-08-15 13:03:13 -07:00
James
f2bec90663
Merge branch 'fix/#922-nested-index-creation' of github.com:payloadcms/payload into fix/#922-nested-index-creation
2022-08-15 12:37:10 -07:00
Dan Ribbens
d0744f3702
fix: nested schema indexes
2022-08-13 07:44:36 -04:00
James
fba0847f0f
fix: ensures you can query on mixed schema type within blocks
2022-08-12 16:08:36 -07:00
Dan Ribbens
b860959fea
fix: point index
2022-08-12 16:35:08 -04:00
Dan Ribbens
f615abc9b1
fix: create indexes in nested fields
2022-08-12 11:59:51 -04:00
James
e1347d5a39
Merge branch 'master' of github.com:payloadcms/payload
2022-08-11 15:02:28 -07:00
James
ca852e8cb2
fix: ensures you can query on nested block fields
2022-08-11 15:02:17 -07:00
KGZM
d0da3d7962
fix: saving multiple versions ( #918 )
...
* test: saving multiple versions with unique fields
* fix: saving multiple versions with unique fields
Version schemas were getting produced with uniqueness constraints which
caused updates to likely fail because each successive version would
potentially reuse unchanged unique key-values (particularly ident keys
like slug) from previous versions.
This was due to `mongoose.buildSchema` not respecting buildSchemaOptions.disableUnique.
This regression was introduced with the fix at commit c175476e .
* test: eslint fix
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
2022-08-11 15:53:51 -04:00
Dan Ribbens
2ae33b603a
feat: WIP tab compatible with traverseFields
2022-08-11 12:05:35 -04:00
Dan Ribbens
a83921a2fe
feat: support localized tab fields
2022-08-11 12:05:02 -04:00
Slava Nossar
420fd67905
update mongodb schema builder
2022-08-11 12:04:20 -04:00
James
3343adb952
feat: allows querying on rich text content
2022-08-04 10:59:56 -04:00
James
9c0c606b20
fix : #880
2022-08-03 13:39:22 -04:00
Dan Ribbens
c175476e74
fix: unique index creation ( #867 )
...
* fix: unique indexes created for mongo 5 and later
* test: add index test coverage for unique, nested and localized fields
2022-08-02 11:56:18 -04:00