UNPKG

539 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ForeignKeyField = void 0;
4var type_graphql_1 = require("type-graphql");
5var typeorm_1 = require("typeorm");
6var utils_1 = require("../utils");
7// Links two tables within the same DB, so they're joined by the ID columns
8function ForeignKeyField() {
9 return utils_1.composeMethodDecorators(type_graphql_1.Field(function () { return String; }), typeorm_1.Column());
10}
11exports.ForeignKeyField = ForeignKeyField;
12//# sourceMappingURL=ForeignKeyField.js.map
\No newline at end of file