Add relation metadata seed (#2431)
* Add relation metadata seed * Fix * Add filtering by relation id on server * Fix
This commit is contained in:
@ -70,7 +70,7 @@ export class FilterTypeDefinitionFactory {
|
||||
for (const fieldMetadata of objectMetadata.fields) {
|
||||
// Composite field types are generated during extensin of object type definition
|
||||
if (isCompositeFieldMetadataType(fieldMetadata.type)) {
|
||||
continue;
|
||||
//continue;
|
||||
}
|
||||
|
||||
const type = this.filterTypeFactory.create(fieldMetadata, options, {
|
||||
|
||||
@ -55,7 +55,7 @@ export class InputTypeDefinitionFactory {
|
||||
for (const fieldMetadata of objectMetadata.fields) {
|
||||
// Composite field types are generated during extensin of object type definition
|
||||
if (isCompositeFieldMetadataType(fieldMetadata.type)) {
|
||||
continue;
|
||||
//continue;
|
||||
}
|
||||
|
||||
const type = this.inputTypeFactory.create(fieldMetadata, kind, options, {
|
||||
|
||||
@ -61,6 +61,7 @@ export class TypeMapperService {
|
||||
[FieldMetadataType.DATE, dateScalar],
|
||||
[FieldMetadataType.BOOLEAN, GraphQLBoolean],
|
||||
[FieldMetadataType.NUMBER, numberScalar],
|
||||
[FieldMetadataType.RELATION, GraphQLID],
|
||||
]);
|
||||
|
||||
return typeScalarMapping.get(fieldMetadataType);
|
||||
@ -88,6 +89,7 @@ export class TypeMapperService {
|
||||
[FieldMetadataType.DATE, dateFilter],
|
||||
[FieldMetadataType.BOOLEAN, BooleanFilterType],
|
||||
[FieldMetadataType.NUMBER, numberScalar],
|
||||
[FieldMetadataType.RELATION, UUIDFilterType],
|
||||
]);
|
||||
|
||||
return typeFilterMapping.get(fieldMetadataType);
|
||||
|
||||
Reference in New Issue
Block a user