Skip to content

Instantly share code, notes, and snippets.

@bartcis
Created July 17, 2019 12:47
Show Gist options
  • Save bartcis/ab2870fdb50695e4c59e5bdb7a620420 to your computer and use it in GitHub Desktop.
Save bartcis/ab2870fdb50695e4c59e5bdb7a620420 to your computer and use it in GitHub Desktop.
Mock data for GraphQL excercise
const api = {
books: [
{
title: 'Encyklopedia PWN - A-D',
author: 'Instytut Przyszłości',
},
{
title: 'Encyklopedia PWN - E-G',
author: 'Instytut Przyszłości',
},
{
title: 'Encyklopedia PWN - H-P',
author: 'Instytut Przyszłości',
},
{
title: 'Encyklopedia PWN - R-Z',
author: 'Instytut Przyszłości',
},
],
countries: [
{
name: 'Polska',
population: '38,4 mln',
inNato: true,
id: 1,
},
{
name: 'Kazachstan',
population: '18,1 mln',
inNato: false,
id: 2,
},
{
name: 'Turcja',
population: '82,8 mln',
inNato: true,
id: 3,
},
{
name: 'Pakistan',
population: '207,7 mln',
inNato: false,
id: 4,
},
{
name: 'Włochy',
population: '60,4 mln',
inNato: true,
id: 5,
},
]
}
module.exports = api;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment