-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Link to the documentation page or resource
https://docs.strapi.io/cms/api/rest/relations
Describe the bug
await strapi
.documents('api::cart.cart')
.update({
documentId: cart.documentId,
data: {
state: 'checked_out',
orderDocumentId: {
connect: [order.documentId]
}
},
});
resulst in the following error:
src/api/order/controllers/order.ts:431:60 - error TS2353: Object literal may only specify known properties, and 'connect' does not exist in type 'LongHandEntity | LongHandDocument'.
mir-stekla-back |
mir-stekla-back | 431 data: { state: 'checked_out', orderDocumentId: { connect: [order.documentId] } },
mir-stekla-back | ~~~~~~~
mir-stekla-back |
mir-stekla-back | Found 1 error(s).
mir-stekla-back |
The metehod is taken from here:
https://docs.strapi.io/cms/api/rest/relations
Additional context
No response
Suggested improvements or fixes
No response
Related issue(s)/PR(s)
No response