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

@policy directive is not recognized while loading the schema to generate code #2887

Open
Sulbigar opened this issue Jan 23, 2024 · 2 comments

Comments

@Sulbigar
Copy link

What happened?

Created the schema with the new federation spec.

extend schema
  @link(
    url: "https://specs.apollo.dev/federation/v2.6",
    import: [
      "@key",
      "@policy"
    ]
  )

...
...
type Customer {
    ...
    last4ssn: String! @policy(policies: "testPolicy")
    ...
}
...
...

When I executed the generate command it failed with the below error.

failed to load schema: graph/customer.graphqls:21: Undefined directive policy.

versions

  • go run github.com/99designs/gqlgen version?
    v0.17.43
  • go version?
    go1.21.6 darwin/arm64
@trevor-scheer
Copy link
Contributor

Should be resolved by #2876. It's not released yet but hopefully this week.

@dariuszkuc
Copy link
Contributor

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

No branches or pull requests

3 participants