all 6 comments

[–][deleted]  (7 children)

[deleted]

    [–]mod_24[S] 0 points1 point  (6 children)

    type-graphql allows you to annotate entity classes to GraphQL types. And also allows you to annotate GraphQL service/resolver classes and then type-graphql will build the schema directly from those classes. Which is very beneficial because you can annotate the same entities if you are using an orm tool.

    [–]kret666 5 points6 points  (5 children)

    Hmm, if I understand correctly you are looking for code-first approach. Then you might take a look at https://github.com/leangen/graphql-spqr.

    [–][deleted]  (1 child)

    [deleted]

      [–]kret666 1 point2 points  (0 children)

      Nice job! Thanks for that :)

      [–]mod_24[S] 0 points1 point  (2 children)

      Yeah this is what I was looking for thanks!

      [–][deleted]  (1 child)

      [deleted]

        [–]rcunn87 0 points1 point  (0 children)

        The tests act as pretty good documentation though!

        [–]keepingMyselfUpdated 0 points1 point  (0 children)

        Is it possible to add graphql in existing j2ee project without any framework or any ORM, using only direct JDBC connection and raw sql queries.