src/types/generateTypeDefs.js
function mapType(model) {
    types[model.modelName] = {
        generated: false,
        name: model.modelName,
        meta: {
            category: 'TYPE',
            fields: {}
        }
    };

    _.forEach(model.definition.properties, (property, key) => {
        mapProperty(model, property, model.modelName, key);
    });

    _.forEach(sharedRelations(model), (rel) => {
        mapRelation(rel, model.modelName, rel.name);
    });
}
function mapType(model) {
    types[model.modelName] = {
        generated: false,
        name: model.modelName,
        meta: {
            category: 'TYPE',
            fields: {}
        }
    };

    _.forEach(model.definition.properties, (property, key) => {
        mapProperty(model, property, model.modelName, key);
    });

    _.forEach(sharedRelations(model), (rel) => {
        mapRelation(rel, model.modelName, rel.name);
    });
}
function mapType ( model ) { types [ model . modelName ] = { generated : false , name : model . modelName , meta : { category : 'TYPE' , fields : { } } } ; _ . forEach ( model . definition . properties , ( property , key ) => { mapProperty ( model , property , model . modelName , key ) ; } ) ; _ . forEach ( sharedRelations ( model ) , ( rel ) => { mapRelation ( rel , model . modelName , rel . name ) ; } ) ; }
Generates a definition for a single model type
@param {*} model
Generates a definition for a single model type