You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ratings is array of objects with keys: rating (number) and user (id).
In map the object is destructuring by key rating (number) and then rating used as an object with the spread operator ...rating!
Hey @Be3y4uu-K0T thanks for pointing this out. You are correct! We shouldn't be mapping the number. I'll go with rating & User instead since it's the only other data param.
Description
docs.surrealdb.com/doc-surrealdb_versioned_docs/version-1.x/surrealql/functions/script/context.mdx
Lines 12 to 29 in f99ece1
ratings
is array of objects with keys:rating
(number) anduser
(id).In
map
the object is destructuring by keyrating
(number) and then rating used as an object with the spread operator...rating
!Maybe you meant something like this:
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: