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

gatsby-source-wordpress error when querying comment author #29998

Closed
stevenabadie opened this issue Mar 4, 2021 · 1 comment
Closed

gatsby-source-wordpress error when querying comment author #29998

stevenabadie opened this issue Mar 4, 2021 · 1 comment
Assignees
Labels
topic: source-wordpress Related to Gatsby's integration with WordPress type: bug An issue or pull request relating to a bug in Gatsby

Comments

@stevenabadie
Copy link

stevenabadie commented Mar 4, 2021

Description

When querying comments from allWpComment an error is returned if the comment author is also queried.

Steps to reproduce

Gatsby plugin versions:

  • gatsby: v3.0.0
  • gatsby-source-wordpress: v 5.0.0

Wordpress plugin versions:

  • WP GraphQLL v1.2.5
  • WP Gatsby v1.0.6

Steps

From local Gatsby GraphiQL query:

query MyQuery {
  allWpComment {
    nodes {
      content
      author {
        node {
          id
        }
      }
    }
  }
}

You should receive an error response message of "Abstract type "WpCommenter" was resolve to a type "CommentAuthor" that does not exist inside schema."

Expected result

WpComment query should return comment author

Actual result

WpComment query returns error message "Abstract type "WpCommenter" was resolve to a type "CommentAuthor" that does not exist inside schema."

Environment

System:
OS: Linux 5.8 Pop!_OS 20.10
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 14.7.0 - ~/.nvm/versions/node/v14.7.0/bin/node
Yarn: 1.22.5 - /usr/bin/yarn
npm: 6.14.7 - ~/.nvm/versions/node/v14.7.0/bin/npm
Languages:
Python: 2.7.18 - /usr/bin/python
Browsers:
Chrome: 87.0.4280.88
Firefox: 86.0
npmPackages:
gatsby: ^3.0.0 => 3.0.0
gatsby-plugin-image: ^1.0.0 => 1.0.0
gatsby-plugin-manifest: ^3.0.0 => 3.0.0
gatsby-plugin-sharp: ^3.0.0 => 3.0.0
gatsby-plugin-sitemap: ^3.0.0 => 3.0.0
gatsby-source-filesystem: ^3.0.0 => 3.0.0
gatsby-source-wordpress: ^5.0.0 => 5.0.0
gatsby-transformer-sharp: ^3.0.0 => 3.0.0
npmGlobalPackages:
gatsby-cli: 2.19.2

@stevenabadie stevenabadie added the type: bug An issue or pull request relating to a bug in Gatsby label Mar 4, 2021
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 4, 2021
@TylerBarnes TylerBarnes added topic: source-wordpress Related to Gatsby's integration with WordPress and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Mar 4, 2021
@TylerBarnes TylerBarnes self-assigned this Mar 4, 2021
@TylerBarnes
Copy link
Contributor

Closing this as a duplicate of #30311 a fixed has been merged in #30358 and will go out in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-wordpress Related to Gatsby's integration with WordPress type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants