hackernews-node/node_modules/prisma-generate-schema/dist/src/index.js
/**
 * Computes a prisma prisma client CRUD schema for a given model.
 * @param model The model in SDL as string.
 * @param databaseType: The database type implementation to use.
 * @returns The prisma client CRUD schema as graphql-js schema object for the given model.
 */
Computes a prisma prisma client CRUD schema for a given model.
@param model The model in SDL as string.
@param databaseType: The database type implementation to use.
@returns The prisma client CRUD schema as graphql-js schema object for the given model.
Computes a prisma prisma client CRUD schema for a given model . @param model The model in SDL as string . @param databaseType : The database type implementation to use . @returns The prisma client CRUD schema as graphql - js schema object for the given model .
function generateCRUDSchema(model, databaseType) {
    var types = parseInternalTypes(model, databaseType).types;
    return generator_1.default.create(databaseType).schema.generate(types.sort(function (_a, _b) {
        var a = _a.name;
        var b = _b.name;
        return (a > b ? 1 : -1);
    }), {});
}
function generateCRUDSchema ( model , databaseType ) { var types = parseInternalTypes ( model , databaseType ) . types ; return generator_1 . default . create ( databaseType ) . schema . generate ( types . sort ( function ( _a , _b ) { var a = _a . name ; var b = _b . name ; return ( a > b ? 1 : - 1 ) ; } ) , { } ) ; }
Computes a prisma prisma client CRUD schema for a given model.
Computes a prisma prisma client CRUD schema for a given model .