Hi.
I’m trying to use a graph QL query to fetch data associated with the current dynamic page object.
I’ve followed the guide on the docs, but the dynamic slug is coming through as empty, which means no data is getting returned. Here’s my graphQL code:
# label: “Course Detail Page”
# description: “Show Course Details”
# $hs_object_id: {{ request.path_param_dict.dynamic_slug }}
query Course($hs_object_id: String!){
CRM {
p_courses(uniqueIdentifier: “hs_object_id”, uniqueIdentifierValue: $hs_object_id) {
associations {
contact_collection__course_tutor {
items {
firstname
lastname
}
}
}
}
}
}
If I print out the value of request.path_param_dict.dynamic_slug in my module, it’s coming out blank too. It’s correctly present in the URL for the dynamic page e.g.
https://27229124.hs-sites-eu1.com/course/1843978974
Does anyone know why this wouldn’t be pulling through correctly?