Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function Model(options: { connection?: cormo.Connection, name?: string, description?: string } = {}) {
const c = cormo.Model({ connection: options.connection, name: options.name });
return (ctor: typeof cormo.BaseModel) => {
c(ctor);
(ctor as any)._graphql = {
description: options.description,
};
};
}