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
|
const queryValidator = joi
|
||||||
.object({
|
.object({
|
||||||
type: joi.string().allow(...Object.values(QueryType)),
|
type: joi.string().allow(...Object.values(QueryType)),
|
||||||
|
readable: joi.boolean(),
|
||||||
fields: joi.object().pattern(joi.string(), fieldValidator),
|
fields: joi.object().pattern(joi.string(), fieldValidator),
|
||||||
})
|
})
|
||||||
.required()
|
.required()
|
||||||
|
|
|
@ -58,6 +58,7 @@ const SCHEMA: Integration = {
|
||||||
},
|
},
|
||||||
aggregate: {
|
aggregate: {
|
||||||
type: QueryType.JSON,
|
type: QueryType.JSON,
|
||||||
|
readable: true,
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
key: "$addFields",
|
key: "$addFields",
|
||||||
|
|
Loading…
Reference in New Issue