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

Repeatable directives (fix bad local merge) #9

Merged
merged 5 commits into from
Apr 12, 2020
Merged

Conversation

lirsacc
Copy link
Owner

@lirsacc lirsacc commented Apr 12, 2020

No description provided.

Now that repeatable directives are a thing the semantics behind
`directive_arguments()` was unclear.

In order to not break existing code, `directive_arguments()` is
maintained but is documented to only return arguments for the first
occurrence of a given directive if it is repeatable.

To support repeatable directives an new helper
(`all_directive_arguments()`) has been added which returns a list of
directive arguments in order of occurrence in the node.

(This applies to `ResolveInfo.get_directive_arguments()` and
`ResolveInfo.get_all_directive_arguments()`.)
@lirsacc lirsacc merged commit 5e910bc into dev Apr 12, 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.

1 participant