1
0
Fork 0
mirror of synced 2024-10-06 04:54:52 +13:00

Merge pull request #8593 from Budibase/bug/sev2/mongodb-aggregate-readable

MongoDB aggregate readable
This commit is contained in:
melohagan 2022-11-10 15:27:08 +00:00 committed by GitHub
commit b6ff581d5e
2 changed files with 2 additions and 0 deletions

View file

@ -51,6 +51,7 @@ function validateDatasource(schema) {
const queryValidator = joi
.object({
type: joi.string().allow(...Object.values(QueryType)),
readable: joi.boolean(),
fields: joi.object().pattern(joi.string(), fieldValidator),
})
.required()

View file

@ -58,6 +58,7 @@ const SCHEMA: Integration = {
},
aggregate: {
type: QueryType.JSON,
readable: true,
steps: [
{
key: "$addFields",