Skip to content

Commit

Permalink
[backend/frontend] Fix STIX relationships (including nested refs) que…
Browse files Browse the repository at this point in the history
…ries (#3553)
  • Loading branch information
SamuelHassine committed Jun 20, 2023
1 parent 67a050e commit d5a9bf2
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,12 @@ const StixDomainObjectTimeline = createRefetchContainer(
... on ObservedData {
name
}
... on Creator {
name
}
... on MarkingDefinition {
definition
}
}
to {
... on BasicObject {
Expand Down Expand Up @@ -532,6 +538,12 @@ const StixDomainObjectTimeline = createRefetchContainer(
... on ObservedData {
name
}
... on Creator {
name
}
... on MarkingDefinition {
definition
}
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions opencti-platform/opencti-front/src/schema/relay.schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7261,8 +7261,8 @@ interface StixRelationship {
updated_at: DateTime!
x_opencti_stix_ids: [StixId]
is_inferred: Boolean!
from: StixObjectOrStixRelationship
to: StixObjectOrStixRelationship
from: StixObjectOrStixRelationshipOrCreator
to: StixObjectOrStixRelationshipOrCreator
x_opencti_inferences: [Inference]
spec_version: String!
created: DateTime
Expand Down Expand Up @@ -7352,10 +7352,10 @@ type StixCoreRelationship implements BasicRelationship & StixRelationship {
updated_at: DateTime!
x_opencti_stix_ids: [StixId]
is_inferred: Boolean!
from: StixObjectOrStixRelationship
from: StixObjectOrStixRelationshipOrCreator
fromId: String!
fromType: String!
to: StixObjectOrStixRelationship
to: StixObjectOrStixRelationshipOrCreator
toId: String!
toType: String!
x_opencti_inferences: [Inference]
Expand Down Expand Up @@ -7477,10 +7477,10 @@ type StixSightingRelationship implements BasicRelationship & StixRelationship {
updated_at: DateTime!
x_opencti_stix_ids: [StixId]
is_inferred: Boolean!
from: StixObjectOrStixRelationship
from: StixObjectOrStixRelationshipOrCreator
fromId: String!
fromType: String!
to: StixObjectOrStixRelationship
to: StixObjectOrStixRelationshipOrCreator
toId: String!
toType: String!
x_opencti_inferences: [Inference]
Expand Down Expand Up @@ -7582,8 +7582,8 @@ type StixRefRelationship implements BasicRelationship & StixRelationship {
updated_at: DateTime!
x_opencti_stix_ids: [StixId]
is_inferred: Boolean!
from: StixObjectOrStixRelationship
to: StixObjectOrStixRelationship
from: StixObjectOrStixRelationshipOrCreator
to: StixObjectOrStixRelationshipOrCreator
x_opencti_inferences: [Inference]
spec_version: String!
created: DateTime
Expand All @@ -7605,7 +7605,7 @@ type StixRefRelationship implements BasicRelationship & StixRelationship {
}

type DefinitionRefRelationship {
entity: StixObjectOrStixRelationship!
entity: StixObjectOrStixRelationshipOrCreator!
from: [String!]
to: [String!]
}
Expand Down
18 changes: 9 additions & 9 deletions opencti-platform/opencti-graphql/config/schema/opencti.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -11028,8 +11028,8 @@ interface StixRelationship {
# StixRelationship
x_opencti_stix_ids: [StixId]
is_inferred: Boolean!
from: StixObjectOrStixRelationship
to: StixObjectOrStixRelationship
from: StixObjectOrStixRelationshipOrCreator
to: StixObjectOrStixRelationshipOrCreator
x_opencti_inferences: [Inference]
spec_version: String!
created: DateTime
Expand Down Expand Up @@ -11118,10 +11118,10 @@ type StixCoreRelationship implements BasicRelationship & StixRelationship {
# StixRelationship
x_opencti_stix_ids: [StixId]
is_inferred: Boolean!
from: StixObjectOrStixRelationship
from: StixObjectOrStixRelationshipOrCreator
fromId: String!
fromType: String!
to: StixObjectOrStixRelationship
to: StixObjectOrStixRelationshipOrCreator
toId: String!
toType: String!
x_opencti_inferences: [Inference]
Expand Down Expand Up @@ -11267,10 +11267,10 @@ type StixSightingRelationship implements BasicRelationship & StixRelationship {
# StixRelationship
x_opencti_stix_ids: [StixId]
is_inferred: Boolean!
from: StixObjectOrStixRelationship
from: StixObjectOrStixRelationshipOrCreator
fromId: String!
fromType: String!
to: StixObjectOrStixRelationship
to: StixObjectOrStixRelationshipOrCreator
toId: String!
toType: String!
x_opencti_inferences: [Inference]
Expand Down Expand Up @@ -11374,8 +11374,8 @@ type StixRefRelationship implements BasicRelationship & StixRelationship {
# StixRelationship
x_opencti_stix_ids: [StixId]
is_inferred: Boolean!
from: StixObjectOrStixRelationship
to: StixObjectOrStixRelationship
from: StixObjectOrStixRelationshipOrCreator
to: StixObjectOrStixRelationshipOrCreator
x_opencti_inferences: [Inference]
spec_version: String!
created: DateTime
Expand All @@ -11399,7 +11399,7 @@ type StixRefRelationship implements BasicRelationship & StixRelationship {
}

type DefinitionRefRelationship {
entity: StixObjectOrStixRelationship!
entity: StixObjectOrStixRelationshipOrCreator!
from: [String!]
to: [String!]
}
Expand Down
64 changes: 32 additions & 32 deletions opencti-platform/opencti-graphql/src/generated/graphql.ts

Large diffs are not rendered by default.

0 comments on commit d5a9bf2

Please sign in to comment.