Commit 560976e9 authored by nanahira's avatar nanahira

remove default index for json column

parent 139ede75
...@@ -29,6 +29,7 @@ import { ...@@ -29,6 +29,7 @@ import {
ParseType, ParseType,
} from '../utility/insert-field'; } from '../utility/insert-field';
import { TypeTransformer } from '../utility/type-transformer'; import { TypeTransformer } from '../utility/type-transformer';
import { NotQueryable } from './access';
export interface OpenAPIOptions<T> { export interface OpenAPIOptions<T> {
description?: string; description?: string;
...@@ -203,6 +204,7 @@ export const JsonColumn = <C extends ClassOrArray>( ...@@ -203,6 +204,7 @@ export const JsonColumn = <C extends ClassOrArray>(
): PropertyDecorator => { ): PropertyDecorator => {
const cl = getClassFromClassOrArray(definition); const cl = getClassFromClassOrArray(definition);
return MergePropertyDecorators([ return MergePropertyDecorators([
NotQueryable(),
Type(() => cl), Type(() => cl),
ValidateNested(), ValidateNested(),
Column('jsonb', { 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