@live-change/relations-plugin
Advanced tools
Comparing version 0.8.115 to 0.8.116
{ | ||
"name": "@live-change/relations-plugin", | ||
"version": "0.8.115", | ||
"version": "0.8.116", | ||
"description": "", | ||
@@ -25,6 +25,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@live-change/framework": "^0.8.115", | ||
"@live-change/framework": "^0.8.116", | ||
"pluralize": "^8.0.0" | ||
}, | ||
"gitHead": "fc360f214e2cd529db9e5795849005a563cb6866" | ||
"gitHead": "32131af3707ec744c9d314035676d09512483799" | ||
} |
@@ -51,5 +51,4 @@ import App from "@live-change/framework" | ||
export function defineIndexes(model, props, types) { | ||
console.log("DEFINE INDEXES", model.name, props, types) | ||
const propCombinations = allCombinations(Object.keys(props)) | ||
console.log("COMBINATIONS", propCombinations) | ||
console.log("DEFINE INDEXES!", model.name, props, types) | ||
const propCombinations = allCombinations(Object.keys(props)) /// combinations of indexes | ||
for(const propCombination of propCombinations) { | ||
@@ -60,3 +59,4 @@ const upperCaseProps = propCombination.map(id => { | ||
}) | ||
defineIndex(model, upperCaseProps.join('And'), props[propCombination]) // it's ok! | ||
const indexProps = propCombination.map(id => props[id]) | ||
defineIndex(model, upperCaseProps.join('And'), indexProps) | ||
} | ||
@@ -63,0 +63,0 @@ } |
133709