#slimanee
1 messages · Page 1 of 1 (latest)
I think you have to escape the quotes IIRC
You do that with the backslash \
Here's an example: https://stripe.com/docs/search#charges-metadata-search
Hey, ok let me test that really quick. So would be query=\"metadata['userId']:'123'\" right ? Or even the single quotes too ?
you only have to escape quotes within quotes
The thing is in typescript i believe escaping is unecessary for how it's written tho
query="metadata['userId']:'${userId}'" with backquotes
the whole string is inside backquotes
Earlier i got Ensure you have properly quoted values while searching. Try updating your query , not anymore
That's why i assume quoting is "ok"
Right, but I believe this is more to do with how Stripe interprets the string. So it would look something like --> query="metadata[\'userId\']:\'${userId}\'"
Ok let me a sec
Sorry i think i got it, i am a dumbass.. didn't gave you context.
I am using the Typescript client, so i was doing
{
query: "query=meta...."
}
Obviously it should have been
{
query: "metad....."
}
I was doubling the query info, so he was looking for the field called query inside the query
Sorry for the distrub, thanks very much for the help