Skip to content

Add note on complex fields impl block in doc #483

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 1 commit into from
Dec 14, 2019
Merged

Add note on complex fields impl block in doc #483

merged 1 commit into from
Dec 14, 2019

Conversation

IcanDivideBy0
Copy link
Contributor

Adding a small note in doc to avoid confusion about impl block for complex fields.
See #482

@codecov-io
Copy link

codecov-io commented Dec 13, 2019

Codecov Report

Merging #483 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #483   +/-   ##
=======================================
  Coverage   85.71%   85.71%           
=======================================
  Files         111      111           
  Lines       15958    15958           
=======================================
  Hits        13678    13678           
  Misses       2280     2280

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a6d5e6...c245347. Read the comment docs.

@@ -25,6 +25,14 @@ impl Person {
}
}

// Note that this syntax generates an impl block for the GraphQLType trait,
// the base impl of your struct can still be writen like usual:
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good but I would tweak the wording a bit:

// Note that this syntax generates an implementation of the GraphQLType trait,
// the base impl of your struct can still be written like usual:

@LegNeato LegNeato merged commit 89a5dc2 into graphql-rust:master Dec 14, 2019
@LegNeato
Copy link
Member

Thanks for the PR!

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.

4 participants