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

GraphQL SDL support for repeatable directives #10614

Closed
1 task done
MattA48 opened this issue Jan 28, 2022 · 1 comment
Closed
1 task done

GraphQL SDL support for repeatable directives #10614

MattA48 opened this issue Jan 28, 2022 · 1 comment
Labels
feature product/runtime protocol/graphql Issues relating to the GraphQL protocol within Postman

Comments

@MattA48
Copy link

MattA48 commented Jan 28, 2022

Is there an existing request for this feature?

  • I have searched the existing issues for this feature request

Is your feature request related to a problem?

I am trying to consume our GraphQL schema generated by .NET / HotChocolate library and it's failing due to not accepting repeatable on a directive

Describe the solution you'd like

Support for repeatable on directives for GraphQL SDL

Describe alternatives you've considered

No response

Additional context

Repeatable directive in GraphQL draft spec: https://spec.graphql.org/draft/#sec-Type-System.Directives
GraphQL repeatable directive PR: graphql/graphql-spec#472

The segment of SDL that is failing in Postman (red squiggle on repeatable - expected 'on')
directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

@DannyDainton DannyDainton added product/runtime protocol/graphql Issues relating to the GraphQL protocol within Postman labels Jul 5, 2022
@SterlingChin
Copy link
Collaborator

The new GraphQL client is in open beta and fully supports the Oct. 21 spec. I was unable to reproduce the red squiggle on repeatable when copy/paste the code from above into the new client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature product/runtime protocol/graphql Issues relating to the GraphQL protocol within Postman
Projects
None yet
Development

No branches or pull requests

3 participants