# all files / keystone/lib/schemaPlugins/options/ transform.js

28.57% Statements 2/7
0% Branches 0/4
0% Functions 0/2
33.33% Lines 2/6

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    111×

    1×

     var _ = require('lodash');

    module.exports = function transform (doc, ret) {
    	if (doc._populatedRelationships) {
    		_.forEach(doc._populatedRelationships, function (on, key) {
    			if (!on) return;
    			ret[key] = doc[key];
    		});
    	}
    };