graphql-sequelize-helper
Version:
graphql-sequelize-helper transform Sequelize models to GraphQL schemas that is compatible with Relay. * <a href="http://docs.sequelizejs.com/">Sequelize</a> is a promise-based Node.js ORM for Postgres, MySQL, SQLite and Microsoft SQL Server. It features s
23 lines (18 loc) • 593 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var ScalarFieldType = function ScalarFieldType(config) {
_classCallCheck(this, ScalarFieldType);
this.name = config.name;
this.description = config.description;
this.graphQLInputType = config.graphQLInputType;
this.graphQLOutputType = config.graphQLOutputType;
this.columnType = config.columnType;
};
exports.default = ScalarFieldType;