sql.json - filter parameter missing? #406
Answered
by
porsager
vitalyster
asked this question in
Q&A
-
|
Beta Was this translation helpful? Give feedback.
Answered by
porsager
Jun 24, 2022
Replies: 1 comment
-
sql.json isn't necessary for v3. Just use regular Javascript ;) sql`
insert into x (some_json) values (${
someArray.filter(x => x.some_prop === 'wat')
}::jsonb)
` |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
porsager
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sql.json isn't necessary for v3. Just use regular Javascript ;)