-
-
Notifications
You must be signed in to change notification settings - Fork 671
Open
Labels
Blocked π«Resolving this issue is blocked by other issue or 3rd party stuffsResolving this issue is blocked by other issue or 3rd party stuffsDiscussion π¬Brainstorm about the ideaBrainstorm about the ideaEnhancement πNew feature or requestNew feature or request
Milestone
Description
Partially solved by #369
Currently blocked by graphql/graphql-js#1343
Ability to define any arbitrary graphql directive to be passed to the compiled schema:
@ObjectType({ directives: ['@cacheControl(maxAge: 240)'] })
class SampleObject {
// ...
}Which should be equivalent to:
type SampleObject @cacheControl(maxAge: 240) {
# ...
}It might be also implemented as a separate decorator that would make possible to create custom decorators like @CacheControl({ maxAge: 240 }):
@Directive('@cacheControl(maxAge: 240)')
@ObjectType()
class SampleObject {
// ...
}brianmcd, cross311, samdenty, ajmath, Erickud and 31 more
Metadata
Metadata
Assignees
Labels
Blocked π«Resolving this issue is blocked by other issue or 3rd party stuffsResolving this issue is blocked by other issue or 3rd party stuffsDiscussion π¬Brainstorm about the ideaBrainstorm about the ideaEnhancement πNew feature or requestNew feature or request