Skip to content

Sample State

FarzamA edited this page Oct 29, 2021 · 16 revisions

Sample State

{
    entities: {
        users: {
            1: {
                id: 1,
                firstName: 'Farzam',
                lastName: 'Ahmad',
                work: 'CEO of Getting it Done',
                location: 'Fayetteville, NY, United States',
                about: 'Grind till it\'s done.'
            },
            2: {
                id: 2,
                firstName: 'Farzam',
                lastName: 'The Second',
                work: 'CEO of Making Games',
                location: 'Fayetteville, NY, United States',
                about: 'Having fun every day!.'
            },
            26: {
                id: 26,
                firstName: 'Chris',
                lastName: 'Clarke',
                work: 'CEO of Interior Design',
                location: 'Fayetteville, NY, United States',
                about: 'Making only the best lights.'
            }
        }
      posts: {
        1: {
          id: 1,
          body: 'Getting things done is the only way to get ahead.',
          authorId: 1,
          likeCount: 10
        },
        2: {
          id: 2,
          body: 'I love to make games! All day every day!',
          authorId: 2,
          likeCount: 12
        },
        3: {
          id: 3,
          body: 'Music is the language of the spirit.',
          authorId: 26,
          likeCount: 5
        }
      },
      comments: {
        1: {
          id: 1,
          body: "How can I get things done?",
          authorId: 1,
          postId: 1,
          likeCount: 12
        },
        2: {
          id: 2,
          body: 'What\'s your favorite game?!',
          authorId: 1,
          postId: 2,
          likeCount: 12
        },
        3: {
          id: 3,
          body: 'I fully agree.',
          authorId: 1,
          postId: 3,
          likeCount: 12
        },
      },
      likes: {
        1: {
            id: 1,
            likerId: 1,
            likeableId: 1,
            type: "post"
        },
        2: {
            id: 2,
            likerId: 1,
            likeableId: 2,
            type: "post"
        },
        3: {
            id: 3,
            likerId: 1,
            likeableId: 2,
            type: "comment"
        },
        4: {
            id: 4,
            likerId: 1,
            likeableId: 3,
            type: "comment"
        },
      },
      education: {
           20: {
               id: 20,
               userId: 1,
               school: "School of Cool", 
               degree: "Masters", 
               field: "Masters of Science in Coology", 
               startYear: "2010", 
               endYear: "2012", 
               gpa: 3.5,
               activities: null,
               description: null
              }, 
           23: {
               id: 23,
               userId: 1,
               school: "Le Moyne College", 
               degree: "Bachelor", 
               field: "Chemistry", 
               startYear: "2014", 
               endYear: "2018", 
               gpa: 3.5,
               activities: "Volleyball",
               description: null
              }, 
        },
        experience : {
              5: {
                  userId: 1,
                  title: "Barrista", 
                  company: "Starbucks", 
                  location: "Jacksonville, Florida",
                  startDate: "August 2014", 
                  endDate: "June 2016",
                  industry: "Food",
                  description: "I made all the drinks on the floor"
              }, 
              23: {
                  userId: 1,
                  title: "Sales Representative", 
                  company: "Target", 
                  location: "Fayetteville, North Carolina",
                  startDate: "August 2017", 
                  endDate: "June 2020",
                  industry: "Sales",
                  description: null
              },   
        }
      connections: {
        1: {
          id: 1,
          connectorId: 1,
          connecteeId: 2,
          accepted: false
        },
        2: {
          id: 2,
          connectorId: 1,
          connecteeId: 26,
          accepted: true
        },
        3: {
          id: 3,
          connectorId: 1,
          connecteeId: 6,
          accepted: true
        }
      }
    },
    session: {
      currentUser: 1
    }, 
    ui: {
      modal: "createPost"
    },
    errors: {
      login: ["Couldn't find a FixedIn account associated with this email. Please try again."],
      posts: ["Please enter some content."]
    }
}
  

Clone this wiki locally