hasura / hasura/graphql-engine

Multiple remote relations in one query return all relations to null when only one is null

Open
#8,324 0 comments 0 reactions 0 assignees View on GitHub
k/bug t/product-platform
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: v2.3.0

### Environment

OSS

### What is the expected behaviour?

When a remote schema relation is null the others remote schema relations need to return their value

### Keywords

Multiple remote schema relation in one query

### What is the current behaviour?

When a remote schema relation is null the others remote schema relations are set to null even if they are not.

### How to reproduce the issue?

1. Add one remote relation with token_one as join key
2. Add a second remote relation with token_two as join key
3. Set token_two to null and token_one to a working value
4. Query one model with these two relations.
5. Relation one return null instead to return its value. If you try to query without relation two it return correctly a value

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.