src/types/generateTypeDefs.js
function mapInputType(model) {
    const modelName = `${model.modelName}Input`;

    types[modelName] = {
        generated: false,
        name: modelName,
        meta: {
            category: 'TYPE',
            input: true,
            fields: {}
        }
    };

    _.forEach(model.definition.properties, (property, key) => {
        mapProperty(model, property, modelName, key, true);
    });
}
function mapInputType(model) {
    const modelName = `${model.modelName}Input`;

    types[modelName] = {
        generated: false,
        name: modelName,
        meta: {
            category: 'TYPE',
            input: true,
            fields: {}
        }
    };

    _.forEach(model.definition.properties, (property, key) => {
        mapProperty(model, property, modelName, key, true);
    });
}
function mapInputType ( model ) { const modelName = ` ${ model . modelName } ` ; types [ modelName ] = { generated : false , name : modelName , meta : { category : 'TYPE' , input : true , fields : { } } } ; _ . forEach ( model . definition . properties , ( property , key ) => { mapProperty ( model , property , modelName , key , true ) ; } ) ; }
Generates a definition for a single model input type
@param {*} model
Generates a definition for a single model input type