federation-hotchocolate
federation-hotchocolate copied to clipboard
feat: full support for `@link` directive
Currently we don't support all features of @link
directive.
directive @link(
url: String!,
as: String,
import: [Import],
for: Purpose)
repeatable on SCHEMA
scalar Import
enum Purpose {
SECURITY
EXECUTION
}
Using @link
directive we can "import" other definitions into our current schema. If we don't explicitly import them, those types should be namespaced (prefixed with @key
to become @myKey
.
We should support following features
- [ ] ability to specify list of imported elements
- [ ] namespace unimported spec elements
- [ ] ability to provide custom namespace (should default to spec name)
- [ ] ability to rename imported elements