agnesoft / agdb

Agnesoft Graph Database
https://agdb.vercel.app
Apache License 2.0
54 stars 2 forks source link

[api] TS: support conversion from any to DbValue #1096 #1094

Closed pinghe closed 4 months ago

pinghe commented 4 months ago

Corrected the error in InsertBuilder.elements and added an elementsAliases method to facilitate node insertion based on alias.

michaelvlach commented 4 months ago

Corrected the error in InsertBuilder.elements and added an elementsAliases method to facilitate node insertion based on alias.

The insert of elements with alias is not directly supported in the Rust's QueryBuilder although it is technically supported by manipulating the query object directly. I can see the use case and I will add it as an enhancement but it would need to come to all API versions (Rust & TS being the only ones now) and not just to the TS version.

Would you mind to focus this PR to the DbValue conversion? I would add the support for the aliases with the insertion of elements in separate issue (#1098) & PR. Thanks!

pinghe commented 4 months ago

OK