Skip to content

use findDog query from example schema only after defining it#927

Merged
leebyron merged 1 commit intographql:mainfrom
thomasheyenbrock:editorial/dog-example-schema
Jun 3, 2022
Merged

use findDog query from example schema only after defining it#927
leebyron merged 1 commit intographql:mainfrom
thomasheyenbrock:editorial/dog-example-schema

Conversation

@thomasheyenbrock
Copy link
Copy Markdown
Contributor

@thomasheyenbrock thomasheyenbrock commented Jan 24, 2022

In the validation section there's an example that uses the findDog query before actually defining it in the type system. This PR adds the query right at the beginning of the section instead of extending the schema later. It also adds the required selection sets in the all examples that use this query.

I also propose renaming the ComplexInput type and the complex argument to something more verbose that fits into the rest of the schema and makes it a "real world" example.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 24, 2022

@leebyron leebyron added the ✏️ Editorial PR is non-normative or does not influence implementation label Jun 3, 2022
@leebyron leebyron merged commit 6b69577 into graphql:main Jun 3, 2022
@leebyron
Copy link
Copy Markdown
Collaborator

leebyron commented Jun 3, 2022

Thank you for this improvement!

@thomasheyenbrock thomasheyenbrock deleted the editorial/dog-example-schema branch June 11, 2022 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✏️ Editorial PR is non-normative or does not influence implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants