Skip to content

Instantly share code, notes, and snippets.

@HenryKun55
Created December 10, 2019 20:47
Show Gist options
  • Save HenryKun55/bb018fff584bfee24536da0b658b5e51 to your computer and use it in GitHub Desktop.
Save HenryKun55/bb018fff584bfee24536da0b658b5e51 to your computer and use it in GitHub Desktop.
data for graphql example
const data = {
artists: [
{
id: 1,
name: "Normandie"
}
],
albuns: [
{
id: 1,
idArtist: 1,
name: "White Flag ",
year: 2018
},
{
id: 2,
idArtist: 1,
name: "White Flag (Reimagined)",
year: 2019
},
{
id: 3,
idArtist: 1,
name: "Inguz",
year: 2016
},
],
tracks: [
{
id: 1,
idAlbum: 1,
name: "Ecstasy",
duration: 230424
},
{
id: 2,
idAlbum: 1,
name: "Dead",
duration: 23919
},
{
id: 3,
idAlbum: 2,
name: "(Don't) Need You - Reimagined",
duration: 23919
},
{
id: 4,
idAlbum: 2,
name: "Dead DnB Version",
duration: 24684
},
{
id: 5,
idAlbum: 3,
name: "Fight",
duration: 24461
},
{
id: 6,
idAlbum: 3,
name: "Awakening",
duration: 18693
},
]
}
module.exports = data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment