diff --git a/src/api/commons/queries/relations.query.js b/src/api/commons/queries/relations.query.js index 0747ef5d..cfb711c3 100644 --- a/src/api/commons/queries/relations.query.js +++ b/src/api/commons/queries/relations.query.js @@ -69,6 +69,7 @@ export default [ otherAssociatedObjectIds: { $ifNull: ['$otherAssociatedObjectIds', []] }, otherAssociatedObjects: 1, active: { $ifNull: ['$active', null] }, + comment: { $ifNull: ['$comment', null] }, }, }, ]; diff --git a/src/openapi/schemas/relations/relation-payload.yml b/src/openapi/schemas/relations/relation-payload.yml index f3bc552e..57080248 100644 --- a/src/openapi/schemas/relations/relation-payload.yml +++ b/src/openapi/schemas/relations/relation-payload.yml @@ -89,3 +89,6 @@ properties: active: type: boolean nullable: true + comment: + type: string + nullable: true \ No newline at end of file diff --git a/src/openapi/schemas/relations/relation.yml b/src/openapi/schemas/relations/relation.yml index 1ab322e3..0dd8591b 100644 --- a/src/openapi/schemas/relations/relation.yml +++ b/src/openapi/schemas/relations/relation.yml @@ -85,4 +85,7 @@ allOf: active: type: boolean nullable: true + comment: + type: string + nullable: true - $ref: '../../api.yml#/components/schemas/Metas' \ No newline at end of file