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

163
Visualizações
how to fetch fierstore collection that has other collections inside of it

I have a firestore database , the highlights collection has an event collection inside of it , which also has a game collection inside of it . I am using the gatsby-source-firestore enter image description here enter image description here enter image description here

in my gatsby-config.js

{
      resolve: `gatsby-source-firestore`,
      options: {
        // credential or appConfig
        credential: require(`./credentials.json`),
        appConfig: {
          apiKey: "XXXXXXXXXXXXXXXXXX",
          authDomain: "XXXXXXXXXXXXX",
          databaseURL: "XXXXXXXXXXXXX",
          projectId: "XXXXXXXXXXXx",
          storageBucket: "XXXXXXXXXXXXXX",
          messagingSenderId: "XXXXXXXXXXXX",
          appId: "XXXXXXXXXXXXXXXx",
          measurementId: "XXXXXX"
        },
        types: [
          {
            type: `Games`,
            collection: `game`,
            map: doc => ({
              name: doc.name,
              game_id:doc.game_id,
              //event___NODE: doc.event.id,
            }),
          },
          {
            type: `Events`,
            collection: `event`,
            map: doc => ({
              name: doc.name,
              id: doc.id
            }),
          },

and I want to do the same for the Highlights collections to fetch it eventually with GraphQL :

{
            type: `Highlights`,
            collection: `highlights`,
            map: doc => ({
              // here to add the tag field
             // here to add the team field
            }),
          },
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