Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Fix for querying fields of different interface types #348

Merged
merged 2 commits into from
Nov 12, 2019

Conversation

flazoon
Copy link
Contributor

@flazoon flazoon commented Nov 12, 2019

Before this change, there was a single 'derivedTypes' param (needed by FRAGMENT_TYPE) passed to the query. This was causing issues with cases where the query was involving fields of different interface types.
e.g. the query below would not work properly

interface Int1{
   ...
}
interface Int2{
   ...
}
type Foo {
   field1: Int1
   field2: Int2
}
query {
   Foo {
      field1 {
         ...
      }
      field2 {
         ...
      }

   }
}

With this change there's one 'derivedTypes' per interface so fields of different interface types can be queried in the same query.

Flaviu Matan Dragoste and others added 2 commits November 12, 2019 12:02
@johnymontana johnymontana merged commit 3147822 into neo4j-graphql:master Nov 12, 2019
@johnymontana
Copy link
Contributor

Thanks @flazoon!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants