Fix ObjectType casing and conflict between Relation and RelationMetadata (#9849)
Fixes #9827 Also uncovered a conflict with `@objectType('Relation')` and `@objectType('relation)` I don't want to address it in this PR so I will create a followup issue when we close this but I think there's a confusion between Relation/RelationMetadata, it's unclear what is what --------- Co-authored-by: Antoine Moreaux <moreaux.antoine@gmail.com>
This commit is contained in:
@ -14,7 +14,7 @@ import { FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dto
|
||||
|
||||
import { IndexMetadataDTO } from './index-metadata.dto';
|
||||
|
||||
@ObjectType('indexField')
|
||||
@ObjectType('IndexField')
|
||||
@Authorize({
|
||||
authorize: (context: any) => ({
|
||||
workspaceId: { eq: context?.req?.workspace?.id },
|
||||
|
||||
@ -33,7 +33,7 @@ registerEnumType(IndexType, {
|
||||
description: 'Type of the index',
|
||||
});
|
||||
|
||||
@ObjectType('index')
|
||||
@ObjectType('Index')
|
||||
@Authorize({
|
||||
authorize: (context: any) => ({
|
||||
workspaceId: { eq: context?.req?.workspace?.id },
|
||||
|
||||
Reference in New Issue
Block a user