question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use entries() with linked entry IDs?

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
seidtgeistcommented, Nov 19, 2014

Going for another interptetation: If you want to get all Entries of type A which are in a certain category if type B this should work:

client.entries({
  include: 1,
  'fields.linkToCategoryOfTypeB.sys.id': 'idOfCategory'
});

As @sdepold said, you can’t query for properties within the category, but you can still look for entries that link to a certain category ID.

0reactions
seidtgeistcommented, Feb 3, 2016

Whoops. Thanks 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entry and asset links - Contentful
Entry and asset links ... Links are a powerful way to model relationships between content. You can use a URI query parameter with...
Read more >
Link To Entry field - Memento Database Wiki
A Link To Entry field may contain a link to an entry or to entries in another library. For many-to-many links: When an...
Read more >
Show only and merge the entries from multiple categories ...
I want to show the entries which have same category of that entry. The entry might have multiple categories, so I want to...
Read more >
Entries Fields | Craft CMS Documentation | 4.x
Entries fields list all of the currently-related entries, with a button to select new ... It's always a good idea to clone the...
Read more >
ID Mapping | UniProt help
The ID Mapping service can map between the identifiers used in one ... If you map to UniProtKB, UniParc or UniRef data, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found