Forum Discussion
baralecki
2 months agoContributor
Thanks for the suggestions. It helped lead me to what I think is the root of the problem.
{{#gql "privateUserStats" variables=(hash id=user.id)}}
However, when we query the user collection directly, ID are returned like "user:12345" not simply "12345". I attempted to use the "concat" helper in the handlebars query to prepend "user:" to the variable value, but Khoros threw an exception:
Exception while fetching data (/component/render) : com.github.jknack.handlebars.HandlebarsException: privateUserStats:1:115: could not find helper: 'concat'
Any ideas on how I can prepend "user:" to the variable before sending to the graphQL query?
MattV
29 days agoKhoros Staff
Try this
{{#gql "privateUserStats" variables=(hash id=(join "user:" user.id ""))}}