0% found this document useful (0 votes)
32 views2 pages

Backend Data

The document contains a structured dataset representing various organizational resources, including an office map, employee onboarding materials, office events from different years, public holidays, and vacation policies. Each resource has a unique identifier and some have nested children for more detailed categorization. The data can be fetched asynchronously using a promise-based function.

Uploaded by

xmichael.owens
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

Backend Data

The document contains a structured dataset representing various organizational resources, including an office map, employee onboarding materials, office events from different years, public holidays, and vacation policies. Each resource has a unique identifier and some have nested children for more detailed categorization. The data can be fetched asynchronously using a promise-based function.

Uploaded by

xmichael.owens
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

const backendData = [

{
"id": "1",
"name": "Office Map"
},
{
"id": "2",
"name": "New Employee Onboarding",
"children": [
{
"id": "8",
"name": "Onboarding Materials"
},
{
"id": "9",
"name": "Training"
}
]
},
{
"id": "3",
"name": "Office Events",
"children": [
{
"id": "6",
"name": "2018",
"children": [
{
"id": "10",
"name": "Summer Picnic"
},
{
"id": "11",
"name": "Valentine's Day Party"
},
{
"id": "12",
"name": "New Year's Party"
}
]
},
{
"id": "7",
"name": "2017",
"children": [
{
"id": "13",
"name": "Company Anniversary Celebration"
}
]
}
]
},
{
"id": "4",
"name": "Public Holidays"
},
{
"id": "5",
"name": "Vacations and Sick Leaves"
}
]

function fetchData() {
return new Promise(resolve => {
setTimeout(resolve, 100, backendData);
});
}

You might also like