feat: add Links field type (#5176)
Closes #5113 --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -69,7 +69,9 @@ export class CompositeInputTypeDefinitionFactory {
|
||||
options,
|
||||
{
|
||||
nullable: !property.isRequired,
|
||||
isArray: property.type === FieldMetadataType.MULTI_SELECT,
|
||||
isArray:
|
||||
property.type === FieldMetadataType.MULTI_SELECT ||
|
||||
property.isArray,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@ -69,7 +69,9 @@ export class CompositeObjectTypeDefinitionFactory {
|
||||
options,
|
||||
{
|
||||
nullable: !property.isRequired,
|
||||
isArray: property.type === FieldMetadataType.MULTI_SELECT,
|
||||
isArray:
|
||||
property.type === FieldMetadataType.MULTI_SELECT ||
|
||||
property.isArray,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@ -92,6 +92,15 @@ export const mapFieldMetadataToGraphqlQuery = (
|
||||
url
|
||||
}
|
||||
`;
|
||||
} else if (fieldType === FieldMetadataType.LINKS) {
|
||||
return `
|
||||
${field.name}
|
||||
{
|
||||
primaryLinkLabel
|
||||
primaryLinkUrl
|
||||
secondaryLinks
|
||||
}
|
||||
`;
|
||||
} else if (fieldType === FieldMetadataType.CURRENCY) {
|
||||
return `
|
||||
${field.name}
|
||||
|
||||
Reference in New Issue
Block a user