Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

148
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda