Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linked item does not work #11

Open
joshuaavalon opened this issue Dec 11, 2018 · 2 comments
Open

Linked item does not work #11

joshuaavalon opened this issue Dec 11, 2018 · 2 comments

Comments

@joshuaavalon
Copy link

{
  allPerson {
    name
    image {
      url
    }
  }
}

It returns url as null. It seems like linked items only return _id

@aequi42
Copy link

aequi42 commented Jan 12, 2019

Had a similar Problem. Looking through the closed issues, I sumbled across this reply
It suggest to set the populate parameter:

query { 
   allCategories(populate:1) {
       _id, 
      Subcategories { 
         Name 
      } 
   } 
}

and it's working!

@wuhhh
Copy link

wuhhh commented Mar 13, 2019

Also worth knowing - if you have deeper levels of nested linked collections, you can just increase the populate integer as necessary.

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

No branches or pull requests

3 participants