Skip to content

docs: fix GraphQL photo author schema#44

Merged
yusukebe merged 1 commit into
yusukebe:masterfrom
oiahoon:docs/update-graphql-author-field
Jul 11, 2026
Merged

docs: fix GraphQL photo author schema#44
yusukebe merged 1 commit into
yusukebe:masterfrom
oiahoon:docs/update-graphql-author-field

Conversation

@oiahoon

@oiahoon oiahoon commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update the documented GraphQL Photo schema to expose author: Author
  • update the shop query example to select the nested author fields

Root cause

The README still documented the internal authorId field, while the public GraphQL schema resolves that value to an Author object before returning a photo.

Validation

  • confirmed the previous example returns Cannot query field "authorId" on type "Photo" from the public endpoint
  • confirmed the updated query returns the nested author object from https://ramen-api.dev/graphql
  • compared the example with src/graphql.ts and the existing GraphQL test query
  • git diff --check

Fixes #13

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe

Copy link
Copy Markdown
Owner

@oiahoon

Nice! Looks good!

@yusukebe yusukebe merged commit fff92b4 into yusukebe:master Jul 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix GraphQL Schema on README

2 participants