Skip to main content

contentful

How to retrieve linked fields or reference entries in single query Contentful

Use 'include' param to include linked entries. In below example it will include upto 4th level of linking.

 

client.getEntries({
            'content_type': 'blog',
            'include': 4
        }).then(function(allBlogs) {
            

              console.log(allBlogs);

});