Skip to content

Sample State

Rokas Jeriomenko edited this page Jul 26, 2023 · 12 revisions

Meteor Live

{
    entities: { 
        users: {
            1: {
                id: 1,
                username: "Demo_Man"
            },
            2: {
                id: 2,
                username: "Barack_Obama"
            },
            3: {
                id: 3,
                username: "Rokas_Jeriomenko"
            }
        },
        tales: {
            1: {
                id: 1,
                author_id: 2,
                publish_time: "2023-08-26 13:43:12",
                title: "Why I Always Loved My Mother",
                content: "JSON stringified body content and body formatting"
            },
            2: {
                id: 2,
                author_id: 1,
                publish_time: "2007-10-10 12:10:10",
                title: "You Should Pay a Visit to DeGroot Keep",
                content: "JSON stringified body content and body formatting"
            },
            3: {
                id: 3,
                author_id: 3,
                publish_time: "2023-05-24 09:00:00",
                title: "Completed Design Documents",
                content: "JSON stringified body content and body formatting"
            }
        },
        comets : {
            1: {
                id: 1,
                userId: 2,
                taleId: 2,
                body: "DeGroot Keep sounds like a nice place. I'd love to visit."
            },
            2: {
                id: 2,
                userId: 1,
                taleId: 2,
                body: "Can't wait ta show ya my Claidheamh Mòr collection."
            },
        },
        feedItems: {
            1: {
                id: 1,
                taleId: 5
            },
            2: {
                id: 2,
                taleId: 6
            },
            3: {
                id: 3,
                taleId: 7
            },
            4: {
                id: 4,
                taleId: 8
            }
        },
        charts: {
            1: {
                id: 1,
                charterId: 1,
                charteeId: 2
            },
            1: {
                id: 1,
                charterId: 1,
                charteeId: 3
            }
        },
        stars: {
            1: {
                id: 1,
                userId: 1,
                taleId: 2
            },
            2: {
                id: 2,
                userId: 1,
                taleId: 3
            },
            3: {
                id: 3,
                userId: 1,
                taleId: 4
            }
        },
        spaces: {
            1: {
                id: 1,
                name: "Physical Health",
                userId: 1,
                taleId: [taleId1, taleId2, taleId3]
            },
            2: {
                id: 2,
                name: "Reading",
                userId: 1,
                taleId: [taleId1]
            }
        },
        constellations: {
            1: {
                id: 1,
                name: "Scottish Pride",
                users: [userId1, userId2, userId3],
                tales: [taleId1, taleId2, taleId3]
            },
            2: {
                id: 2,
                name: "Technology & Us"
                userId: [userId1, userId2],
                taleId: [taleId1]
            }
        },
        profile: { aboutBody: "Welcome to my About page!" }
    },
    session: { 
        notifications: 2,
        currentUserId: 1
    },
    errors: { 
        tale: ["Title is too short"],
        login: ["Username is blank", "Password is blank"],
    },
    ui: { loading: false }
}

Clone this wiki locally