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

Type classes should not need to extend the AbstractAnnotatedObjectType #23

Closed
4 tasks done
moufmouf opened this issue Aug 29, 2018 · 1 comment
Closed
4 tasks done

Comments

@moufmouf
Copy link
Member

moufmouf commented Aug 29, 2018

In order to make graphql-controllers independant of youshido/graphql (since it is abandonned), we should be able to create types that do not need to inherit any class (and in particular the AbstractAnnotatedObjectType).

  • Add a @SourceField() annotation that can live in the class docblock to quickly expose existing properties
  • Write a class that transforms a random instance of any class into a GraphQL type by analyzing its annotations
  • Write a package that scans a directory and returns all its classes
  • Write a TypeMapper that scans a directory, analyze a @type annotation that performs the Type to GraphQL type mapping
@moufmouf
Copy link
Member Author

Closed by #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant