cayleygraph / cayleygraph/cayley

Relationships not displaying correctly in new cayley version

Open
#960 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

- Cayley Forum - https://discourse.cayley.io
- Slack - cayleygraph.slack.com, invites: https://cayley-slackin.herokuapp.com

**Description**

Unable to display relationships correctly. We have a set of entity relations.

When A -->B

and when we query the relation. It would give relation between A and B when we query for A. This is not happening in the latest version of Cayley.
When we give B , it would give the relation. In previous version that is 7.2 we are getting the results correctly. But in 7.7 we are unable to get this and customers have raised bug
**Steps to reproduce the issue:**
Create relation between A and B, A Query for A

**Received results:**

Getting empty results

{
"result": [
[]
]
}

**Expected results:**

"result": [
[
"test-A",
"test-B"
],
{
"relation": "DependsOn",
"source": "test-A",
"target": "test-B"
},
{
Backend database: `(database and version)`

7,7

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the A→B relationship query described in the issue, comparing Cayley 7.2 with 7.7 and recording the backend configuration. The issue does not name a source file or test, so trace the query and relationship lookup entry points after identifying the database backend. Done means the query for A returns the expected test-A/test-B relationship without breaking the B query.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.