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.

what are 'errors' and 'includes' properties in the getEntries() response object?

See original GitHub issue

this is what my client code look like, everything works fine I get my content but when I am learning based on the API documentation I cannot find any info about these two objects.

var client = contentful.createClient({ accessToken: '****', space: '****' }); client.getEntries().then(entries => { console.log(entries) })

the response is image

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
HauntedSmorescommented, Oct 27, 2017

@Khaledgarbaya Thanks a lot for the clarification. I also had the same explanation from contentful support, who are always on the ball. Great work on the SDK and the platform in general. My team let me run with Contentful for my current project and I think I may have successfully killed WordPress around here. Thanks for that!

1reaction
Khaledgarbayacommented, Oct 27, 2017

Hi @HauntedSmores, If the entry is already in the items array it does not make sense to include in the includes array this will lead to duplication of content and a bigger payload. When resolving the links you need to look into both items and includes. That’s what we do in the SDK already since we resolve the links for you. You can check the code here.

Best, Khaled

Read more comments on GitHub >

github_iconTop Results From Across the Web

performance.getEntries() - Web APIs - MDN Web Docs
The getEntries() method returns an array of all PerformanceEntry objects currently present in the performance timeline.
Read more >
Linked entries and assets in Contentful
Linked assets and entries in Contentful are a mystery no more! Let's explore how to work with links in the REST and GraphQP...
Read more >
Problem reaching Contentful's API with getEntry() helper
Few days ago I posted a question here asking for help with contentful API for a javascript query of objects and since then...
Read more >
Methods - Items API - Learnosity Reference
getResponses(). Obtains an object containing responses for each Question that has been attempted. Returns: object. var responses = itemsApp.
Read more >
TTree Class Reference - ROOT
0 branch added or already included; -1 on error. Definition at line 1058 of file TTree.cxx. ◇ AddBranchToCache() [2/2] ...
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