Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Independent collections are not being fetched from Firestore. #1

Open
DevanandGowda opened this issue Nov 28, 2019 · 0 comments
Open

Comments

@DevanandGowda
Copy link

I am having trouble where I want to use two different collections as my source. If I include only either of them it works perfectly.

But when both collections are mentioned only one of them gets fetched.

My gatsby-config.js looks like this -

{
        resolve: `@martinreiche/gatsby-firestore`,
        options: {
        credential: require(`./firebase.json`),
        types: [
               {
                  type: `AbcXyz`,
                  collection: `abcXyz`,
                  map: (details) => ({
                        productDetails: details,
                    }),
                },
               {
                  type: `Lmn`,
                  collection: `lmn`,
                  map: (doc) => ({
                       dank: doc,
                  }),
               },
         ],
     },
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant