Skip to content

Map array of objects? #200

@alex-w0

Description

@alex-w0

Unfortunately I can't find the answer I'm looking for in the documentation. Is there a way how I can map an array of objects like the example below? What must the scheme look like?

const object = {
  persons: [
    {
        id: 1
        name: "User 1"
    },
    {
        id: 2
        name: "User 2"
    }
 ],
 data: {
     authors: [
        {
            id: 1
            name: "User 1"
        },
        {
            id: 2
            name: "User 2"
        }
    ],
 }
};

const schema = {

};

morphism(schema, object);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions