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

Can't get the author of a review #543

Open
flocosnier opened this issue Aug 22, 2021 · 1 comment
Open

Can't get the author of a review #543

flocosnier opened this issue Aug 22, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@flocosnier
Copy link

When I try to retrieve a review author with this query, I have a blank response :

{
  products {
    edges {
      node {
        reviews {
          nodes {
            isRestricted
            author {
              node {
                name
                isRestricted
                ... on User {
                  id
                  email
                  name
                  nicename
                }
                ... on CommentAuthor {
                  id
                  email
                  databaseId
                  isRestricted
                  name
                  url
                }
              }
            }
          }
        }
      }
    }
  }
}

There are two types of author : the logged in user (User in the query) and the review author (Comment Author in the query).

The query only returns informations about the User and the mutation only allows to have a Comment Author. So, when a customer creates a review, we can't get his name..

Does anyone have a workaround ?

@flocosnier
Copy link
Author

It appears to be an authorization problem, as a temporary workaround I'm querying this as admin server side if anyone's looking for a solution !

@kidunot89 kidunot89 added bug Something isn't working and removed feature request labels May 8, 2024
@kidunot89 kidunot89 added this to the v0.19.1 milestone May 8, 2024
@kidunot89 kidunot89 modified the milestones: v0.19.1, 0.20.1 May 21, 2024
@kidunot89 kidunot89 modified the milestones: v0.20.1, v0.21.1 Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants