Skip to content

Commit

Permalink
updated supportedFieldTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
MXPOL committed Dec 5, 2023
1 parent 17b9be3 commit 7ddd779
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/velo-external-db-core/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ export const createRouter = () => {
})

router.post('/v3/capabilities/get', async(req, res) => {
const unsupportedFieldTypes = [ schemaSource.FieldType.arrayString, schemaSource.FieldType.reference, schemaSource.FieldType.multiReference,
schemaSource.FieldType.arrayDocument, schemaSource.FieldType.array ]
const capabilitiesResponse = {
supportsCollectionModifications: true,
supportedFieldTypes: ['TEXT', 'NUMBER', 'DATE', 'DATETIME', 'BOOLEAN'],
supportedFieldTypes: Object.values(schemaSource.FieldType).filter(t => !unsupportedFieldTypes.includes(t)),
supportsCollectionDisplayName: false,
supportsCollectionDisplayField: false,
supportsCollectionPermissions: false,
Expand Down

0 comments on commit 7ddd779

Please sign in to comment.