Documentation: Further define thing
on db.create/merge/delete/select
#218
Labels
documentation
Improvements or additions to documentation
Description
When writing code to interface with the database, the db client refers to
thing
as a table or record name throughout the operations. It's unclear what the format of this string should be, in case that there are special symbols that must be escaped or which symbols act as delimiters for the table name/record ID.I propose that there should be either a link to an explanation or an inline explanation for the format of this string to prevent developer confusion over the format of this field.
I encountered this by debugging an issue here where I had a record with a random string that would randomly fail to insert when the string generated with a dash.
As seen on the delete method (for example), it says table name or record ID, but it doesn't specify the format that the record ID needs to be in.
Notably, the
thing
property behaves differently with thecreate
action, where it will insert records that do not get inserted on themerge
action. This different behavior isn't mentioned or obvious, so it may cause problems if the format ofthing
isn't clear to the developer.Code:
Surrealist:
Thanks :D
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: