Skip to content

Instantly share code, notes, and snippets.

{
search(query: "stars:>10000 language:javascript", type: REPOSITORY, first: 10) {
repositoryCount
edges {
node {
... on Repository {
name
diskUsage
description
stargazers {
@halkeand
halkeand / fetch-and-process.js
Last active December 15, 2017 23:07
fetch-and-process
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) => {