You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In V1 of ojotas it is needed that the user specifies for each query where relations are being included which key is going to serve as the unique identifier of each object. This is important for deduping purposes
We need to tell ojotas (manually) that jobNumber and locationId are the unique identifiers of those entities.
Another possibility would be that ojotas always include in the sql query the primary key of each object. Use that to do the assemble and then discard it so the user only gets what they asked for. Sequelize does this behind the scenes too to have better DX when manually specifying attributes.
The text was updated successfully, but these errors were encountered:
In V1 of ojotas it is needed that the user specifies for each query where relations are being included which key is going to serve as the unique identifier of each object. This is important for deduping purposes
ie:
We need to tell ojotas (manually) that jobNumber and locationId are the unique identifiers of those entities.
Another possibility would be that ojotas always include in the sql query the primary key of each object. Use that to do the assemble and then discard it so the user only gets what they asked for. Sequelize does this behind the scenes too to have better DX when manually specifying attributes.
The text was updated successfully, but these errors were encountered: