-
I have lost some time figuring out this one. When referencing a table record in a query, SurrealQL treats strings with patterns like This is for me the first confusing point, because I would expect Secondly, as I hinted above, because of an inconsistent and likely inappropriate use of js-driver functions ( Congratulations on your amazing work! And apologies in advance if I am missing some relevant point, just started digging into your fantastic product! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I really think what in strict mode all ids (and maybe even just tables names) should starts with colon - so it always clear that is record link. And even in json output, such format much easier to immediately identify ids. And it machine-friendly too - just checks first string symbol, instead of full patter matching. Additionally, you can read about better type safety at #161 |
Beta Was this translation helpful? Give feedback.
-
after further digging I found there was a bug with numerical ids (my example was not quite correct, actually. duplication of records was triggered by RecordIDS like still, I think literal strings should be returned verbatim independently of content in cases like |
Beta Was this translation helpful? Give feedback.
after further digging I found there was a bug with numerical ids (my example was not quite correct, actually. duplication of records was triggered by RecordIDS like
person:10
). apparently this has been solved and will be patched soon (see #149).still, I think literal strings should be returned verbatim independently of content in cases like
select * from "table:id"
and hopefully the patch will address that too