edgeql-js: How to insert data that's a tuple with a reserved word as a key #742
Answered
by
NetOpWibby
NetOpWibby
asked this question in
Q&A
-
Problem"refresh" is an reserved word in EdgeDB so the below will not work. query.data = {
expire: query.expire,
minimum: query.minimum,
mname: query.mname,
refresh: query.refresh,
retry: query.retry,
rname: query.rname,
serial: query.serial
};
|
Beta Was this translation helpful? Give feedback.
Answered by
NetOpWibby
Sep 29, 2023
Replies: 1 comment 1 reply
-
SolutionEntire object should be wrapped in query.data = e.tuple({
expire: query.expire,
minimum: query.minimum,
mname: query.mname,
"`refresh`": query.refresh,
retry: query.retry,
rname: query.rname,
serial: query.serial
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
NetOpWibby
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution
Entire object should be wrapped in
e.tuple
and the reserved keyboard should be quoted AND have backticks.