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

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
}),
},