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

154
Views
fetching data based on clicked collection graphql

I want to fetch some data based on a clicked collection . I am fetching data from firestore ,so I would like when I click on a collection link , I want only it's related collections to be displayed .For example , I have a collection called Events , so the events will be displayed in my home screen as links , and when I click on a link I want to show the Games collection based on the Event . in my index.jsx:

const HomePage = (props) => {
  const {allEvents} = useStaticQuery(
    graphql`
      query{
        allEvents {
        nodes{
          id
          name
        }
      }
    }
    `

in the {Events.name} folder index.jsx:

export const query = graphql`
    events: allGames(filter: ) {
        nodes{
            id
            name
        }
}
`

in this page I want to display the games , but I didn't know how !

about 4 years ago · Juan Pablo Isaza
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!