apollographql / federation-jvm

JVM support for Apollo Federation
https://www.apollographql.com/docs/federation/
MIT License
250 stars 65 forks source link

fix: include full `@link` directive definition #352

Closed dariuszkuc closed 1 year ago

dariuszkuc commented 1 year ago

Add missing Purpose enum. Full @link definition as per the spec:

directive @link(
    url: String!,
    as: String,
    import: [Import],
    for: Purpose)
repeatable on SCHEMA

scalar Import

enum Purpose {
  SECURITY
  EXECUTION
}

Resolves: #351