Commit 560976e9 authored by nanahira's avatar nanahira

remove default index for json column

parent 139ede75
......@@ -29,6 +29,7 @@ import {
ParseType,
} from '../utility/insert-field';
import { TypeTransformer } from '../utility/type-transformer';
import { NotQueryable } from './access';
export interface OpenAPIOptions<T> {
description?: string;
......@@ -203,6 +204,7 @@ export const JsonColumn = <C extends ClassOrArray>(
): PropertyDecorator => {
const cl = getClassFromClassOrArray(definition);
return MergePropertyDecorators([
NotQueryable(),
Type(() => cl),
ValidateNested(),
Column('jsonb', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment