Skip to main content

Creating a dataconnector for retrieving document list, the only way I found is to define an array is to use a declaration field as any:

...
{
name: "customAttributes",
type: ScalarFieldTypeEnum.ANY,
},
{
name: "customTags",
type: ScalarFieldTypeEnum.ANY,
},

which  IMHO is not good I would like to use things like 

    {
name: "customAttributes",
type: :]ScalarFieldTypeEnum.STRING,
},
{
name: "customTags",
type: :]ScalarFieldTypeEnum.STRING,
},

Any suggestions?

Best regards.

 

Hello Michel,

 

I believe this syntax is what you need:

        fieldName: {
type: new FieldTypeArray((ScalarFieldTypeEnum.STRING as const]),
},

 


Many thanks ​@Michael B . That’s the solution.

Regards.


Reply