I took some time to restructure the JSON.
It looks like this in MongoDB.
{
"pastprojects": [{
"title": "One Title",
"main": "- Blah Line 1<br>- Blah Line 2",
"sub": "Sub One Description"
},
{...
Feel confident I got the structure correct for the mongoose.Schema for the number 1 array of objects.
const pastProjectsSchema = new mongoose.Schema({
experience: {
pastProjects:[
{
1: [
{
title: String...
My GraphQL sandbox localhost at port 4000
Problem : I am querying for data and not sure how to construct the typeDefs for Graphql and mongoose description of the database. It provides me an array/list of objects and that is what I do not understand how to construct.
Operation
query test {...