UNPKG
schemaghost
Version:
latest (0.1.0-beta.0)
0.1.0-beta.0
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Instant mock API server from database schema
schemaghost
/
dist
/
generate
/
relationResolver.js
8 lines
(7 loc)
•
290 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
// Resolve model relations with depth control and cycle detection
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
resolveRelations
= resolveRelations;
function
resolveRelations
(
modelsData, depth
) {
//
TODO:
implement relation resolution algorithm
}