Hi , I am using Sanity as my CMS.I am using Sanity Data fetcher with the following GROQ query:
`
*[_type == "page" && slug.current == "${$ctx.params.slug}"][0] {
title
}
`
I like to get different page based on the slug param but so far I was not able to do that. I am getting Error in sanity Fethcer: slug is not defined. I was wondering if I am doing anything wrong?