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
SurrealDb.Net.Exceptions.SurrealDbException : There was a problem with the database: Found 'TestRecords:{"x":"xx","z":"zz"}' for the id field, but a specific record has been specified
public class TestRecord : Record {
public string TestA { get; set; }
public string TestB { get; set; }
public string TestC { get; set; }
}
...
var testRecordResult = await surrealDbClient.Upsert(new TestRecord {
Id = Thing.From("TestRecords", new { x = "xx", z = "zz" }),
TestA = "Something",
TestB = null,
TestC = "SomethingElse",
}, CancellationToken.None
);
yields the following problem: SurrealDb.Net.Exceptions.SurrealDbException : There was a problem with the database: Found 'TestRecords:{"x":"xx","z":"zz"}' for the id field, but a specific record has been specified
I've noticed the same issue with the HTTP engine:
PUT http://localhost:8000/key/TestRecords/{"x":"xx","z":"zz"}
using the driver with WS engine:
SurrealDb.Net.Exceptions.SurrealDbException : There was a problem with the database: Found 'TestRecords:{"x":"xx","z":"zz"}' for the id field, but a specific record has been specified
yields the following problem:
SurrealDb.Net.Exceptions.SurrealDbException : There was a problem with the database: Found 'TestRecords:{"x":"xx","z":"zz"}' for the id field, but a specific record has been specified
I've noticed the same issue with the HTTP engine:
PUT http://localhost:8000/key/TestRecords/{"x":"xx","z":"zz"}
with body
does not work
but with body
does work,
so this seems like a serialization issue when escaping strings of Ids that are objects?
The text was updated successfully, but these errors were encountered: