bigquery-client
Version:
A feature-rich Node.js client for Google BigQuery with support for CRUD operations, transactions, query building, and advanced features like aggregate functions, pagination, and logging.
12 lines (11 loc) • 472 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Relation = Relation;
require("reflect-metadata");
function Relation(type, target, options) {
return function (targetClass, propertyKey) {
const relations = Reflect.getMetadata('relations', targetClass.constructor) || [];
relations.push({ propertyKey, type, target, options });
Reflect.defineMetadata('relations', relations, targetClass.constructor);
};
}