Update a named field in a tuple property #5397
-
|
I'm having trouble working out how to elegantly update single fields in a tuple property. As an example, take the following property: I want to update one field of this stat-set, but it seems that although the 'dot' syntax is used to access tuple fields, it does not combine with path resolution, which can only terminate in a link or property. The seemingly intuitive query: raises the error raises I can see a couple of potential solutions:
Is there a 'clean' EdgeQL way to perform these updates in place within the tuple? If not, which of the above alternatives would you recommend, or is there another approach to this modelling problem? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
You can always do this: I'm looking into whether there's a more elegant solution... |
Beta Was this translation helpful? Give feedback.
-
|
For better ergonomics, you might consider modeling the stats as a separate type and linking to them from a character. If you can't do that for one reason or another, my previous answer is probably your best bet. |
Beta Was this translation helpful? Give feedback.
You can always do this:
I'm looking into whether there's a more elegant solution...