Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
GraphQL fetch data based on visited url

I want to fetch some data based on the visited url of my blog website . This is the query I am using in the pages I'd like to fetch the data :

export const query = graphql`
  query BlogPostQuery($uid: String) {
   prismicBlog(uid: { eq: $uid }) {
      uid
    }
  }
`

This also returns a JSON format in my GraphiQL :

{
  "data": {
    "prismicBlog": {
      "uid": "last04"
    }
  },
  "extensions": {}
}

Eventually , this returns only one uid and it's the first uid in my Prismic CMS , so it doesn't fetch data accordingly of the visited url. Any idea how to solve this ?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!