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

add directives an model via annotations #278

Open
heiko-he opened this issue Jul 6, 2020 · 0 comments
Open

add directives an model via annotations #278

heiko-he opened this issue Jul 6, 2020 · 0 comments

Comments

@heiko-he
Copy link

heiko-he commented Jul 6, 2020

It should exist a way to add some/own directives to the model with annotations.

E.g:

@GraphQlFederationKey(fields = "id")
@GraphQlFederationExtends
@GraphQLType(name = "Product")
public class ExtensionProduct {
@GraphQlFederationExternal
long id;

--> the result is after generation:

extend type Product @key(fields: "id"){
id: ID! @external
}

Thats some directives they will be used in federational schema - Apollo Federation:
https://www.apollographql.com/docs/apollo-server/federation/introduction/

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

1 participant