|
1 | 1 | const config = { |
2 | | -// // The following keys, can be edited in contentstack-content-store-mongodb. |
3 | | -// contentStore: { |
4 | | -// // Name of the mongodb database to store in |
5 | | -// dbName: 'contentstack-db', // Required |
6 | | -// // Collection name in which contents will be stored |
7 | | -// collection: { |
8 | | -// asset: 'prod_contents', |
9 | | -// entry: 'prod_contents', |
10 | | -// schema: 'prod_content_types' |
11 | | -// }, |
12 | | -// // keys that form part of sys_keys, pass { key: true } to add, { key: false } to remove |
13 | | -// // currently, only top level keys from SYNC API response item are supported |
14 | | -// indexedKeys: { |
15 | | -// _content_type_uid: true, |
16 | | -// locale: true, |
17 | | -// uid: true, |
18 | | -// }, |
19 | | -// // Refer http://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html for more configuration options |
20 | | -// options: { |
21 | | -// autoReconnect: true, |
22 | | -// connectTimeoutMS: 15000, |
23 | | -// keepAlive: true, |
24 | | -// noDelay: true, |
25 | | -// reconnectInterval: 1000, |
26 | | -// reconnectTries: 20, |
27 | | -// userNewUrlParser: true, |
28 | | -// }, |
29 | | -// // Keys to be deleted, while data is being inserted |
30 | | -// unwantedKeys: { |
31 | | -// asset: { |
32 | | -// action: true, |
33 | | -// checkpoint: true, |
34 | | -// 'data.created_by': true, |
35 | | -// event_at: true, |
36 | | -// type: true, |
37 | | -// 'data.updated_by': true |
38 | | -// }, |
39 | | -// contentType: { |
40 | | -// 'data.created_by': true, |
41 | | -// 'data.updated_by': true, |
42 | | -// 'data.DEFAULT_ACL': true, |
43 | | -// 'data.SYS_ACL': true, |
44 | | -// 'data.abilities': true, |
45 | | -// 'data.last_activity': true |
46 | | -// }, |
47 | | -// entry: { |
48 | | -// action: true, |
49 | | -// checkpoint: true, |
50 | | -// 'data.created_by': true, |
51 | | -// event_at: true, |
52 | | -// type: true, |
53 | | -// 'data.updated_by': true |
54 | | -// }, |
55 | | -// }, |
56 | | -// // mongodb connection url |
57 | | -// url: 'mongodb://localhost:27017', |
58 | | -// } |
| 2 | + // // The following keys, can be edited in contentstack-content-store-mongodb. |
| 3 | + // contentStore: { |
| 4 | + // // Name of the mongodb database to store in |
| 5 | + // dbName: 'contentstack-db', // Required |
| 6 | + // // Collection name in which contents will be stored |
| 7 | + // collection: { |
| 8 | + // asset: 'prod_contents', |
| 9 | + // entry: 'prod_contents', |
| 10 | + // schema: 'prod_content_types' |
| 11 | + // }, |
| 12 | + // // keys that form part of sys_keys, pass { key: true } to add, { key: false } to remove |
| 13 | + // // currently, only top level keys from SYNC API response item are supported |
| 14 | + // indexedKeys: { |
| 15 | + // _content_type_uid: true, |
| 16 | + // locale: true, |
| 17 | + // uid: true, |
| 18 | + // }, |
| 19 | + // // Refer http://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html for more configuration options |
| 20 | + // options: { |
| 21 | + // autoReconnect: true, |
| 22 | + // connectTimeoutMS: 15000, |
| 23 | + // keepAlive: true, |
| 24 | + // noDelay: true, |
| 25 | + // reconnectInterval: 1000, |
| 26 | + // reconnectTries: 20, |
| 27 | + // userNewUrlParser: true, |
| 28 | + // }, |
| 29 | + // // Keys to be deleted, while data is being inserted |
| 30 | + // unwantedKeys: { |
| 31 | + // asset: { |
| 32 | + // action: true, |
| 33 | + // checkpoint: true, |
| 34 | + // 'data.created_by': true, |
| 35 | + // event_at: true, |
| 36 | + // type: true, |
| 37 | + // 'data.updated_by': true |
| 38 | + // }, |
| 39 | + // contentType: { |
| 40 | + // 'data.created_by': true, |
| 41 | + // 'data.updated_by': true, |
| 42 | + // 'data.DEFAULT_ACL': true, |
| 43 | + // 'data.SYS_ACL': true, |
| 44 | + // 'data.abilities': true, |
| 45 | + // 'data.last_activity': true |
| 46 | + // }, |
| 47 | + // entry: { |
| 48 | + // action: true, |
| 49 | + // checkpoint: true, |
| 50 | + // 'data.created_by': true, |
| 51 | + // event_at: true, |
| 52 | + // type: true, |
| 53 | + // 'data.updated_by': true |
| 54 | + // }, |
| 55 | + // }, |
| 56 | + // // mongodb connection url |
| 57 | + // url: 'mongodb://localhost:27017', |
| 58 | + |
| 59 | + // // Flag to preserve asset uid in the referenced entries, When a new asset version is published.(preserveAssetInReferencedEntries: true) |
| 60 | + // preserveAssetInReferencedEntries: false |
| 61 | + // } |
59 | 62 | } |
60 | 63 |
|
61 | 64 | module.exports = config |
0 commit comments