opencti icon indicating copy to clipboard operation
opencti copied to clipboard

[schema] Nullable list items?

Open rlynch-ironnet opened this issue 2 years ago • 0 comments

Prerequisites

  • [x] I read the Deployment and Setup section of the OpenCTI documentation as well as the Troubleshooting page and didn't find anything relevant to my problem.
  • [x] I went through old GitHub issues and couldn't find anything relevant
  • [x] I googled the issue and didn't find anything relevant

Description

I've been looking at potentially introducing typing to various parts of the python client, and granted, I haven't run many test queries yet. Shouldn't the objects inside the various list properties be non-nullable? e.g. this

type IndicatorConnection {
  pageInfo: PageInfo!
  edges: [IndicatorEdge]
}

Can an edge ever actually return as null? The entire list might be sure, but the item shouldn't.

Environment

n/a

Reproducible Steps

n/a

Additional information

n/a

rlynch-ironnet avatar Jul 22 '22 23:07 rlynch-ironnet