Skip to content
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

updates directive root structure #776

Closed
wants to merge 1 commit into from
Closed

Conversation

qhenkart
Copy link
Contributor

@qhenkart qhenkart commented Jul 5, 2019

The documentation was incorrect in the way directives are generated, missing the body interface{}. I originally thought this was a bug until I checked what the object was and figured that should be in the documentation too

I have:

@coveralls
Copy link

Coverage Status

Coverage remained the same at 61.917% when pulling 8e780fe on qhenkart:master into 414a4d3 on 99designs:master.

}
```
*ctx*: passed from the resolver
*obj*: the payload aggregated so far
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can actually vary a bit, depending on where the directive was - #760

}
```
*ctx*: passed from the resolver
*obj*: the payload aggregated so far
*next*: signals that the directive was successful
Copy link
Collaborator

Choose a reason for hiding this comment

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

next is the middleware pattern, it's not signaling success it's fetching the value by going through the rest of the stack.

@vektah
Copy link
Collaborator

vektah commented Aug 8, 2019

Shipped with some tweaks:
139e4e8

@vektah vektah closed this Aug 8, 2019
@vektah vektah added the v0.9.2 label Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants