This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
search(query: "stars:>10000 language:javascript", type: REPOSITORY, first: 10) { | |
repositoryCount | |
edges { | |
node { | |
... on Repository { | |
name | |
diskUsage | |
description | |
stargazers { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const render = (data) => console.log(data) | |
const apiUrl = 'https://jsonplaceholder.typicode.com/albums' | |
const fetchAsync = async (url) => { | |
let resp = await fetch(url) | |
let data = await resp.json() | |
return data | |
} | |
const fetchAndProcess = (url, process) => { |