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

Return null for the fields not array #4

Closed
cricrio opened this issue Oct 16, 2017 · 3 comments
Closed

Return null for the fields not array #4

cricrio opened this issue Oct 16, 2017 · 3 comments

Comments

@cricrio
Copy link

cricrio commented Oct 16, 2017

For example when we are querying with this schema neo4jgraphql return a post where owner is in an array and not an object. Then Apollo server sends null for each property of User.

type Post{
  name : String
  owner : User  @relation(name: "WRITE", direction:"IN")
}
johnymontana added a commit that referenced this issue Oct 21, 2017
@johnymontana
Copy link
Contributor

Thanks @cricrio for reporting!

I've pushed a fix for this (I think!) in d6210aa and published to npm as v0.1.5

Could you try again with that version?

@cricrio
Copy link
Author

cricrio commented Oct 22, 2017

It's working !

@johnymontana
Copy link
Contributor

Great! Keep the bug reports coming - it’s very helpful :-)

johnymontana pushed a commit that referenced this issue Sep 19, 2018
johnymontana pushed a commit that referenced this issue Nov 6, 2019
Replaced FRAGMENT_TYPE value from first label found to properly searc…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants