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

Allow nested fragments #78

Merged
merged 1 commit into from
Jul 23, 2018

Conversation

cooperka
Copy link
Contributor

Example query:

query items {
  items {
    ...Foo
  }
}

fragment Foo on Item {
  name
  ...Bar
}

fragment Bar on Item {
  description
}

Currently, neo4j-graphql-js returns only part of the desired data:

"items": [
  {
    "name": "My name",
    "description": null
  }
]

Effectively ignoring the nested fragment. This simple change allows it to check fragments for nested fragments and return that data as well.

@johnymontana johnymontana merged commit 6530b08 into neo4j-graphql:master Jul 23, 2018
johnymontana added a commit that referenced this pull request Jul 23, 2018
@johnymontana
Copy link
Contributor

Thanks @cooperka!

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

Successfully merging this pull request may close these issues.

2 participants