Closed ayoung19 closed 6 days ago
The underlying issue is that the db.transact
happens before the client has fetched its attributes and so it doesn't know that it's a unique attribute.
Working on a fix.
This should be fixed in 0.12.9. Please reopen and ping me if you're still having issues.
This should be fixed in 0.12.9. Please reopen and ping me if you're still having issues.
This issue seems to persist in "@instantdb/react": "^0.12.14". Here's my query -
instantDb.transact([
tx.readings[lookup('positionId', reading.positionId)].update(reading).link({ jobs: reading.jobId }),
]);
@Zeb88 what's the error that you're seeing here?
Should be fixed by https://github.com/instantdb/instant/pull/161 in version 12.0.27. Please @ me if you're still seeing the issue after upgrading.
I'm getting this error:
trying to do this write operation (link):
with the following schema (link):
What am I doing wrong here? I'm simply trying to update the movements entity by its unique
playerId
attribute. As a sanity check, here are the attribute settings in the dashboard: