Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 470d83d

Browse files
[client] Fixed objectLabel retrieval in reports, notes and observed data graphql queries (#590)
1 parent 94f2bf8 commit 470d83d

File tree

2 files changed

+18
-42
lines changed

2 files changed

+18
-42
lines changed

pycti/entities/opencti_stix_cyber_observable.py

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,13 +2349,9 @@ def reports(self, **kwargs):
23492349
created
23502350
modified
23512351
objectLabel {
2352-
edges {
2353-
node {
2354-
id
2355-
value
2356-
color
2357-
}
2358-
}
2352+
id
2353+
value
2354+
color
23592355
}
23602356
}
23612357
... on Organization {
@@ -2480,13 +2476,9 @@ def notes(self, **kwargs):
24802476
created
24812477
modified
24822478
objectLabel {
2483-
edges {
2484-
node {
2485-
id
2486-
value
2487-
color
2488-
}
2489-
}
2479+
id
2480+
value
2481+
color
24902482
}
24912483
}
24922484
... on Organization {
@@ -2612,13 +2604,9 @@ def observed_data(self, **kwargs):
26122604
created
26132605
modified
26142606
objectLabel {
2615-
edges {
2616-
node {
2617-
id
2618-
value
2619-
color
2620-
}
2621-
}
2607+
id
2608+
value
2609+
color
26222610
}
26232611
}
26242612
... on Organization {

pycti/entities/opencti_stix_domain_object.py

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,13 +1851,9 @@ def reports(self, **kwargs):
18511851
created
18521852
modified
18531853
objectLabel {
1854-
edges {
1855-
node {
1856-
id
1857-
value
1858-
color
1859-
}
1860-
}
1854+
id
1855+
value
1856+
color
18611857
}
18621858
}
18631859
... on Organization {
@@ -1982,13 +1978,9 @@ def notes(self, **kwargs):
19821978
created
19831979
modified
19841980
objectLabel {
1985-
edges {
1986-
node {
1987-
id
1988-
value
1989-
color
1990-
}
1991-
}
1981+
id
1982+
value
1983+
color
19921984
}
19931985
}
19941986
... on Organization {
@@ -2114,13 +2106,9 @@ def observed_data(self, **kwargs):
21142106
created
21152107
modified
21162108
objectLabel {
2117-
edges {
2118-
node {
2119-
id
2120-
value
2121-
color
2122-
}
2123-
}
2109+
id
2110+
value
2111+
color
21242112
}
21252113
}
21262114
... on Organization {

0 commit comments

Comments
 (0)