Closed lylejohnson closed 2 months ago
Actually, looks like I can't create it in Surrealist.app either, so it's something special and fun about SurrealDB.
CREATE electronic_support_type CONTENT { discreteValue: "lm:arf" };
yields the error message:
Found lm:arf for field `discreteValue`, with record `electronic_support:...`, but expected a string
It appears to be seen as a record id. You can add a suffix for it to always be seen a string, like this:
CREATE electronic_support_type CONTENT { discreteValue: s"lm:arf" };
Or simply cast it:
CREATE electronic_support_type CONTENT { discreteValue: <string>"lm:arf" };
@Odonno Thank you! I'll add that fix to my code that generates those.
Describe the bug I'm running a migration which creates several records in an existing table. The migration fails with an error message:
To Reproduce
I'll try to put together a small dataset to reproduce it with.
Expected behavior I expected the migration to run without errors. I don't understand what's special about a string field value like "Back:Lower" or "ree:pss" when creating records.
Information Please complete the following information and remove the unnecessary ones.
Additional context Add any other context about the problem here.