8000 Update tutorial-todo-gql-mutation-input.md by freb · Pull Request #2063 · ent/ent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update tutorial-todo-gql-mutation-input.md #2063

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

Merged
merged 3 commits into from
Oct 27, 2021

Conversation

freb
Copy link
Contributor
@freb freb commented Oct 24, 2021

Make example code match latest changes mutation_inputs (https://github.com/a8m/ent-graphql-example):

freb added 2 commits October 20, 2021 10:52
Make example code match latest changes to https://github.com/a8m/ent-graphql-example:

- Renaming fields that accept IDs on mutation_inputs (including a8m/ent-graphql-example#5)
- Removing duplicate fields when edge fields are used (a8m/ent-graphql-example#3)
Copy link
Member
@a8m a8m left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @freb 🙏

@@ -28,17 +28,20 @@ GraphQL mutations, and add additional methods on the different builders to accep

```gotemplate
{{ range $n := $.Nodes }}
{{ $input := print "Create" $n.Name "Input" }}
Copy link
Member

Choose a reason for hiding this comment

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

Why did you delete this row?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I totally screwed up 😕, Sorry!

I've pushed another commit.

Copy link
Member

Choose a reason for hiding this comment

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

👍

Add back the accidental removal of `$input` variable declaration.
a8m
a8m approved these changes 716E Oct 27, 2021
@a8m a8m merged commit a98798e into ent:master Oct 27, 2021
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.

2 participants
0