Skip to content

Bug: Inconsistency in GraphQL Query for Author Data #74

Closed
@esthersoftwaredev

Description

@esthersoftwaredev

Describe the bug

We need to address an inconsistency in our GraphQL query that retrieves author data from Hashnode's API.

  • In the file graphql.operations.ts on lines 139 and 175, the query should be changed, we need to get:
  • id
  • name
  • and username should be added too
  • verify that cases are for the author.

image

  • in the post.ts file, the author interface should be adjusted, the usarname property needs to be added

image

To see the changes

  • in the post-details component we need to change post.author.name to post.author.username

image

Browsers

Chrome

Additional context (Is this in dev or production?)

No response

I would be willing to submit a PR to fix this issue

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions