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

170
Views
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
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!