Merge pull request #8593 from Budibase/bug/sev2/mongodb-aggregate-readable
MongoDB aggregate readable
This commit is contained in:
commit
b6ff581d5e
|
@ -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()
|
||||
|
|
|
@ -58,6 +58,7 @@ const SCHEMA: Integration = {
|
|||
},
|
||||
aggregate: {
|
||||
type: QueryType.JSON,
|
||||
readable: true,
|
||||
steps: [
|
||||
{
|
||||
key: "$addFields",
|
||||
|
|
Loading…
Reference in New Issue