UNPKG
@nexo-labs/payload-taxonomies
Version:
latest (1.15.0)
1.15.0
1.14.8
1.14.7
1.14.6
1.14.5
1.14.4
1.14.2
1.13.1
1.13.0
1.12.0
1.11.2
1.11.1
1.10.0
1.9.9
1.9.8
1.9.7
1.9.6
1.9.5
1.9.4
1.9.3
1.9.2
1.9.1
1.9.0
1.8.0
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.20
1.6.19
1.6.18
1.6.17
1.6.16
1.6.15
1.6.14
1.6.13
1.6.12
1.6.11
1.6.10
1.6.9
1.6.8
1.6.1
1.6.0
1.5.2
1.5.1
1.5.0
1.4.4
1.4.3
1.4.2
1.4.1
1.3.0
1.0.2
1.0.1
1.0.0
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.8
0.8.7
0.8.6
0.8.5
0.8.3
0.8.2-test-9
0.8.2-test-8
0.8.2-test-7
0.8.2-test-6
0.8.2-test-5
0.8.2-test-4
0.8.2-test-3
0.8.2-test-2
0.8.2-test-11
0.8.2-test-10
0.8.2-test-1
0.8.1
0.8.0
Taxonomies for Payload CMS
@nexo-labs/payload-taxonomies
/
dist
/
buildTaxonomizedCollection.js
9 lines
(8 loc)
•
282 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ taxonomyRelationship }
from
"./taxonomiesRelationshipFields"
;
export
const
buildTaxonomizedCollection
= config => {
const
protoConfigCollection = { ...config,
fields
: [taxonomyRelationship, ...config.
fields
], };
return
protoConfigCollection; };