[{"CompanyId":20,"CompanyName":"Walmart","CompanyContacts":[{"CompanyId":20,"FirstName":"Bob","LastName":"Green","Email":"bob@test.com"
,"Phone":"1234567","IsActive":false}]}]
This isn't doing it for me
schema: {
model: {
id:"CompanyId",
fields: {
CompanyContactId: { type: "number", editable: false, nullable: false },
FirstName: { type: "string", validation: { required: true } },
LastName: { type: "string", validation: { required: true } },
Email: { type: "string", validation: { required: true } },
Phone: { type: "string", validation: { required: true } },
IsActive: { type: "boolean" },
}
}
}
,"Phone":"1234567","IsActive":false}]}]
This isn't doing it for me
schema: {
model: {
id:"CompanyId",
fields: {
CompanyContactId: { type: "number", editable: false, nullable: false },
FirstName: { type: "string", validation: { required: true } },
LastName: { type: "string", validation: { required: true } },
Email: { type: "string", validation: { required: true } },
Phone: { type: "string", validation: { required: true } },
IsActive: { type: "boolean" },
}
}
}