Skip to content

GraphQL Error Unknown field edges on type RootQueryType #5

@Bon2xl

Description

@Bon2xl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions