Hi, I'm getting an error in gatsby, I'm wondering what im doing wrong, I followed every step in you docs. I setup gatsby-config.js
plugins: [ 'gatsby-plugin-react-helmet', { resolve: 'gatsby-source-firebase', options: { credential: require("./widthjsonfile.json"), databaseURL: "https://myapp.firebaseio.com", types: [ { type: "Bars", path: "bars", query: ref => ref.limitToLast(10), map: node => { return node; }, }, ] } }
then I added in graphql in the page
export const query = graphql
query allBars {
edges {
node {
name
}
}
}
after that I get an error
GraphQL Error Unknown field edges on type RootQueryType
`
what am I doing wrong?
Hi, I'm getting an error in gatsby, I'm wondering what im doing wrong, I followed every step in you docs. I setup gatsby-config.js
plugins: [ 'gatsby-plugin-react-helmet', { resolve: 'gatsby-source-firebase', options: { credential: require("./widthjsonfile.json"), databaseURL: "https://myapp.firebaseio.com", types: [ { type: "Bars", path: "bars", query: ref => ref.limitToLast(10), map: node => { return node; }, }, ] } }then I added in graphql in the page
export const query = graphqlquery allBars {
edges {
node {
name
}
}
}
after that I get an errorGraphQL Error Unknown field
edgeson typeRootQueryType`
what am I doing wrong?