diff --git a/examples/gatsbygram/scrape.js b/examples/gatsbygram/scrape.js index 78cdbc400109a..e841498086951 100644 --- a/examples/gatsbygram/scrape.js +++ b/examples/gatsbygram/scrape.js @@ -76,7 +76,7 @@ const getPosts = maxId => { posts.push(item) }) - const lastId = get(body, `user.media.page_info.end_cursor`) + const lastId = get(body, `user.edge_owner_to_timeline_media.page_info.end_cursor`) if (posts.length < 100 && lastId) getPosts(lastId) else saveJSON() })