Skip to content

Error importing document: Field itemStocks not found. #68

Open
@Rasimoghlu

Description

@Rasimoghlu

if ($this->itemStocks->isNotEmpty()) {
$extraFields['itemStocks'] = $this->itemStocks->map(function ($itemStock) {
return [
'available' => (int)$itemStock->available,
'stock_unit_code' => (string)$itemStock->stock_unit_code,
'source_warehouse_id' => (int)$itemStock->source_warehouse_id
];
})->toArray();
}

When im trying to import object like this i get error Error importing document: Field itemStocks not found.

How to fix it? I declared itemStocks in schema and gived type 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