Skip to content

@recurse depth and facets producing intuitively wrong results #3163

@pjebs

Description

@pjebs

If I do a recurse query with a depth that prevents an edge from getting traversed, but the edge contains a facet, the produced outout seems wrong:

spew (main.RootChain) {
 Chain: ([]main.ChainModel) (len=1 cap=4) {
  (main.ChainModel) {
   UID: (string) (len=6) "0x4e78",
   HashID: (string) (len=10) "7nil4uzhw5",
   XData: (string) (len=35) "{\"test\":\"xxx\",\"sdagsdg\":[\"sdgsdg\"]}",
   Parent: ([]main.ChainModel) (len=1 cap=4) {
    (main.ChainModel) {
     UID: (string) "",
     HashID: (string) "",
     XData: (string) "",
     Parent: ([]main.ChainModel) <nil>,
     Facet: (*string)(0xc0002aa030)((len=8) "required")
    }
   },
   Facet: (*string)(<nil>)
  }
 }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions