James Mikrut
c3533dac2a
Merge pull request #2846 from dpnolte/chore/disable_eslint_for_generated_types
...
chore: disable eslint on generated types
2023-06-19 11:11:48 -04:00
James Mikrut
8d52e5f078
Merge pull request #2830 from payloadcms/chore/depth-docs
...
chore: updates depth docs with N + 1 concept
2023-06-19 11:10:08 -04:00
James
116e9ffe81
fix : #2842 , querying number custom ids with in
2023-06-19 11:02:30 -04:00
James
967f217346
feat: optimizes conditional logic performance
2023-06-19 10:48:17 -04:00
James Mikrut
da2a94d0b2
Merge pull request #2850 from AlessioGr/fix-configToJSONSchema
...
fix: old entityToJSONSchema being exported
2023-06-19 10:28:02 -04:00
James Mikrut
6c2b726fe1
Merge pull request #2855 from payloadcms/fix/#2832
...
fix : #2832 , slow like queries with lots of records
2023-06-19 10:18:49 -04:00
James
4dd703a6bf
fix: slow like queries with lots of records
2023-06-19 10:13:47 -04:00
Dan Ribbens
c60886fe3e
docs: preferences graphql
2023-06-18 22:56:30 -04:00
Alessio Gravili
762b572c51
configToJSONSchema
2023-06-18 17:24:58 +02:00
Dan Ribbens
c7f40dd860
chore: remove mongoose models from auth
2023-06-18 08:38:40 -04:00
Dan Ribbens
832c19c1f7
chore: lint fix
2023-06-18 07:42:13 -04:00
Derk Nolte
6ca371cb8b
chore: disable eslint on generated types
2023-06-18 10:14:21 +02:00
Alessio Gravili
0d8d7f358d
fix: deprecate min/max in exchange for minRows and maxRows for relationship field ( #2826 )
...
* fix: deprecate min/max in exchange for minRows and maxRows for relationship
* fix: update validations unit tests with minRows and maxRows
* fix: incorrect types
* move to sanitize
2023-06-18 02:09:30 +02:00
James
51c2ab1672
chore(release): v1.9.5
v1.9.5
2023-06-16 17:41:40 -04:00
James
a88f86cc3f
chore: ensures objectid within works properly
2023-06-16 17:37:15 -04:00
Dan Ribbens
25151ee191
chore: collection based preferences ( #2820 )
...
**BREAKING CHANGES**
Preferences have been overhauled to be abstracted as a Payload collection and no longer explicitly defined by Payload. They previously used the slug `_preferences` as a collection name and url route and are now
If any of the following are true you will need to take action:
- You have existing preferences you wish to keep for your admin users you must migrate data in the _preferences collection to the new shape. To migrate the preferences in the database you must update the shape of each _preferences document from:
```js
{
user: ObjectId("abc"),
userCollection: "users",
/** other fields remain the same **/
}
```
to:
```js
{
user: {
value: 'abc',
relationTo: 'users",
}
/** other fields remain the same **/
}
```
- You have code external of Payload or custom code within Payload using the API endpoint `api/_preferences`, you should update any applications to use `api/payload-preferences` instead.
- You were using the preferences GraphQL implementation. This was removed and is instead provided the same way as Payload handles any other. In this way the queries, mutation and schemas have changed. These are now generated as any other collection within your payload project.
- You were using the Payload's exported Preference type for your typescript code. Now you can instead import the generated type from your project.
2023-06-16 16:58:36 -04:00
James
451c8c7548
chore(release): v1.9.4
v1.9.4
2023-06-16 16:43:40 -04:00
James Mikrut
528645d407
Merge pull request #2791 from no-heroes/fix/pagination-false-totaldocs
...
fix: totalDocs is always 1 when using payload.find({ pagination: false })
2023-06-16 16:37:50 -04:00
James
70cf8487e7
chore(release): v1.9.3
v1.9.3
2023-06-16 16:17:34 -04:00
James
aa09e566e0
Merge branch 'master' of github.com:payloadcms/payload
2023-06-16 15:50:16 -04:00
James
c3d6e1b490
fix: ensures relations to object ids can be queried on
2023-06-16 15:50:09 -04:00
Jarrod Flesch
6580f43e53
chore: relocates configToJSON alongside entityToJSON and fieldsToJSON ( #2827 )
2023-06-16 12:42:59 -04:00
Jarrod Flesch
56d7745139
fix: adds custom property to ui field in joi validation ( #2835 )
2023-06-16 09:09:31 -04:00
PatrikKozak
ee1c7db915
chore: updates depth docs with N + 1 concept
2023-06-15 16:59:27 -04:00
Dan Ribbens
504f5190d5
chore: normalize payload collections and globals outside db adapter
2023-06-15 16:50:11 -04:00
Jarrod Flesch
b682c76dc7
chore: cleans up graphql-schema-gen test folder
2023-06-15 09:54:53 -04:00
James
6aabdd05be
chore: adds mongoose mock
2023-06-14 17:41:49 -04:00
Dan Ribbens
0d035a9c23
chore: update changelog release notes v1.9.2
2023-06-14 11:33:07 -04:00
Dan Ribbens
8310950f7b
chore(release): v1.9.2
v1.9.2
2023-06-14 11:32:14 -04:00
Jacob Fletcher
120e2936fe
chore: removes cms text from instances of payload name ( #2793 )
2023-06-14 10:31:29 -04:00
Alessio Gravili
884f7991c4
chore: remove --legacy-peer-deps from gh actions workflow ( #2814 )
2023-06-14 10:23:48 -04:00
Tylan Davis
9664e4b96f
chore: version diff styles ( #2824 )
...
Co-authored-by: Tylan Davis <tylan@Tylans-MacBook-Pro.local >
2023-06-14 10:21:23 -04:00
Dan Ribbens
63cd7fbd0c
fix : #2821 i18n ui field label ( #2823 )
2023-06-14 08:39:45 -04:00
Tylan Davis
346a48f871
fix: adds missing dark-mode styles for version differences view ( #2812 )
...
Co-authored-by: Tylan Davis <tylan@Tylans-MacBook-Pro.local >
2023-06-14 08:29:13 -04:00
Jessica Boezwinkle
8fe3e59e76
Merge branch 'docs/misc-updates'
2023-06-13 17:35:52 +01:00
Jessica Boezwinkle
74d6156e8d
chore: adds credentials to rest api examples
2023-06-13 17:35:39 +01:00
PatrikKozak
e834424a4c
Merge branch 'master' of https://github.com/payloadcms/payload into chore/api-keys-docs
2023-06-13 12:25:09 -04:00
PatrikKozak
465d8b0245
chore: updates authentication/api-keys docs
2023-06-13 12:25:02 -04:00
Jessica Boezwinkle
25e9c1a50a
fix: adds async await to payload.init example
2023-06-13 17:02:35 +01:00
Jessica Boezwinkle
d601cdd29e
fix: adds async await to payload.init example
2023-06-13 17:01:55 +01:00
Jessica Chowdhury
5646ce9d8f
Merge pull request #2810 from payloadcms/docs/blocks-table
...
docs: fix blocks table
2023-06-13 09:28:56 +01:00
James
87ba8b1f58
chore: removes some findOnes
2023-06-12 22:07:24 -04:00
James
5433560f8d
chore: bulk update
2023-06-12 21:44:01 -04:00
James
05ed6d9721
chore: stubs out global versions queries
2023-06-12 21:38:10 -04:00
James
f74ff8f6bf
chore: stubs out find adapter method
2023-06-12 20:18:09 -04:00
James
41acf71013
chore: passing tests
2023-06-12 19:41:08 -04:00
James
03c004f3d8
chore: progress to simplifying buildQuery logic
2023-06-12 17:59:05 -04:00
James
2be33a0fca
chore: improves types for mongoose adapter model handling
2023-06-12 17:39:26 -04:00
James
5762d80945
Merge branch 'feat/mongoose-adapter' of github.com:payloadcms/payload into feat/mongoose-adapter
2023-06-12 16:50:11 -04:00
James Mikrut
a72d6fcb13
Merge pull request #2789 from payloadcms/chore/abstract-query-validation-complete
...
chore: refactor query validation outside of mongoose
2023-06-12 16:49:56 -04:00