Skip to content

Feature - Refactoring more decorators#32

Merged
felipesabino merged 4 commits intomasterfrom
feature/refactor-decorators
Oct 29, 2017
Merged

Feature - Refactoring more decorators#32
felipesabino merged 4 commits intomasterfrom
feature/refactor-decorators

Conversation

@felipesabino
Copy link
Copy Markdown

  • Refactoring @Query, @Mutation, @Subscription and @Schema (now it is missing only @Field decorator and the ones related)
  • Moved @UseContainer decorator to decorator folder
  • Refactored schema.type-factory to be less verbose
  • Refactored Arguments and Metadata interfaces to reduce code duplication

}));
}

buildEntrytypeMetadata(target: any, type: EntryType): EntryTypeMetadata[] | undefined {
Copy link
Copy Markdown

@tibawatanabe tibawatanabe Oct 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entry T ypeMetadata

@@ -0,0 +1,6 @@
export interface DefaultOption {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default or common? which one is preferable?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about only Option, Metadata and Arg instead of DefaultOption, DefaultMetadata and DefaultArg?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some progress in other refactoring and will do this in my upcoming refactor PR

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Done at ea05219

@felipesabino felipesabino merged commit 6864c51 into master Oct 29, 2017
@felipesabino felipesabino deleted the feature/refactor-decorators branch October 29, 2017 09:27
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

Successfully merging this pull request may close these issues.

2 participants