graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

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

Open arnaudjnn opened this issue 3 years ago • 0 comments

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

arnaudjnn avatar Mar 15 '22 12:03 arnaudjnn