These are chat archives for graphql-java/graphql-java

24th
Apr 2017
Andrew Potter
@apottere
Apr 24 2017 14:04
I’ve always seen it handled in the ExecutionStrategy, but I haven’t really used relay
Bojan Tomić
@kaqqao
Apr 24 2017 14:06
Thanks. Was thinking the same... but the generated ID is sadly not accessible from the DataFetcher, unless you customize the strategy and provide it yourself.
So I was just wondering what do others do.
Andrew Potter
@apottere
Apr 24 2017 14:07
Woops, just edited to ExecutionStrategy ^^, that’s what I meant
Bojan Tomić
@kaqqao
Apr 24 2017 14:08
Ah, I see :) Makes all the difference :)
Andrew Potter
@apottere
Apr 24 2017 14:10
haha yup, sorry
Fabian Küng
@faebuk
Apr 24 2017 16:08
hey there
does someone has an example for a server with graphql-java?
i can't get it how to make a server from the repo
to call graphql over rest
Fabian Küng
@faebuk
Apr 24 2017 16:10
i'll have a look, thank you so much!
Bojan Tomić
@kaqqao
Apr 24 2017 16:10
Andrew Potter
@apottere
Apr 24 2017 16:10
:thumbsup:
Fabian Küng
@faebuk
Apr 24 2017 16:11
or does someone knows a better alternative to build a "integration layer"/"api gateway" for multiple backends? similar to graphql. like calling different backends (OData, SOAP, REST, SQL, etc.) but implemented in java
Fabian Küng
@faebuk
Apr 24 2017 16:13
not a cloud solution :) something to deploy in different environments on-premise :)
I'm new to java :worried:
Andrew Potter
@apottere
Apr 24 2017 16:13
this might be what you’re looking for? I’ve never used it though: https://github.com/Netflix/zuul
Fabian Küng
@faebuk
Apr 24 2017 16:14
found this already, but didnt find out how to integrate or program :)
I'm a little java nuubie
Andrew Potter
@apottere
Apr 24 2017 16:14
I think that’s a pretty large scale project
Fabian Küng
@faebuk
Apr 24 2017 16:14
but zuul seems to be OK
any other? :) (maybe a simpler one for the nuubies?)
Andrew Potter
@apottere
Apr 24 2017 16:24
I’m not sure off the top of my head
Fabian Küng
@faebuk
Apr 24 2017 16:25
okay thanks for your help! I really appreciate it
Andrew Potter
@apottere
Apr 24 2017 16:25
:thumbsup:
Bojan Tomić
@kaqqao
Apr 24 2017 16:41
If you want GraphQL and already have your REST, SOAP etc services in Java, I can suggest my library GraphQL-SPQR (it's linked in this project's readme). It's still in beta, but it's pretty usable. The main downside is that it still has almost no docs. If you're in experimentation stage and looking for options you can have a look. It aims to make exposing any Java functionality​ through GraphQL trivial. You'd slap some annotations or configuration code on top of your existing Java methods, and you instantly have the equivalent GraphQL API.
Bojan Tomić
@kaqqao
Apr 24 2017 16:53
Typing from phone, so can't really give a code sample.
Fabian Küng
@faebuk
Apr 24 2017 16:54
looks promising, found an example
but sadly our API is written with ABAP (SAP systems)