Skip to content

Warning about normal methods in juniper::object impl blocks#545

Merged
LegNeato merged 2 commits intographql-rust:masterfrom
Zvax:patch-1
Mar 4, 2020
Merged

Warning about normal methods in juniper::object impl blocks#545
LegNeato merged 2 commits intographql-rust:masterfrom
Zvax:patch-1

Conversation

@Zvax
Copy link
Copy Markdown
Contributor

@Zvax Zvax commented Feb 27, 2020

There's a comment here that only GraphQL fields can be specified in #[juniper::object] impl block, yet in the book it was not specified, I needed help to get the idea of separating my new method in another impl block.

I simply copied that information in the book because it feels important; one would not know of this only by reading the book.

Zvax and others added 2 commits February 26, 2020 21:29
There's a comment [here](https://docs.rs/juniper/0.14.2/juniper/attr.object.html) that only GraphQL fields can be specified in `#[juniper::object]` impl block, yet in the book it was not specified, I needed help to get the idea to try it.

I simply copied that information because it feels important.
@LegNeato LegNeato merged commit 15e9bff into graphql-rust:master Mar 4, 2020
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