■ ■ ■ ■ ■ ■
opencti-platform/opencti-graphql/src/resolvers/observedData.js
| skipped 18 lines |
19 | 19 | | stixDomainObjectEditContext, |
20 | 20 | | stixDomainObjectEditField, |
21 | 21 | | } from '../domain/stixDomainObject'; |
22 | | - | import { RELATION_CREATED_BY, RELATION_OBJECT_LABEL, RELATION_OBJECT_MARKING } from '../schema/stixMetaRelationship'; |
| 22 | + | import { RELATION_CREATED_BY, RELATION_OBJECT, RELATION_OBJECT_LABEL, RELATION_OBJECT_MARKING } from '../schema/stixMetaRelationship'; |
23 | 23 | | import { buildRefRelationKey } from '../schema/general'; |
24 | 24 | | |
25 | 25 | | const observedDataResolvers = { |
| skipped 32 lines |
58 | 58 | | createdBy: buildRefRelationKey(RELATION_CREATED_BY), |
59 | 59 | | markedBy: buildRefRelationKey(RELATION_OBJECT_MARKING), |
60 | 60 | | labelledBy: buildRefRelationKey(RELATION_OBJECT_LABEL), |
| 61 | + | objectContains: buildRefRelationKey(RELATION_OBJECT), |
61 | 62 | | }, |
62 | 63 | | Mutation: { |
63 | 64 | | observedDataEdit: (_, { id }, { user }) => ({ |
| skipped 13 lines |