Hi guys, I’m trying to update two tables at once. ...
# orm-help
t
Hi guys, I’m trying to update two tables at once. Except when I add the linked table: user --> update, I’m getting a type error that roleId should be undefined. However, if I remove the update to the linked table, the type error disappears and roleId correctly expects a string. Does anyone know what I’m doing wrong here?
Copy code
data: {
        roleId: 'UEET',
        user: {
          update: {
            ...rest,
          },
        },
      },
👀 1
r
Hi @Taylor Cantwell 👋 Can you please share both the schema file and query you are performing?
Hi, Are you still facing this issue?