Replies: 1 comment 1 reply
-
|
Assuming you are posting a graphql request to server B, the DGS framework
will handle that under the hood. All you need to do is implement the data
fetcher, i.e. a method annotated with @DgsQuery or @DgsMutation as
applicable for the request. The framework is built on top of graphql-java
and the request is handled field by field by invoking the appropriate data
fetchers that you have implemented for each field:
https://www.graphql-java.com/tutorials/getting-started-with-spring-boot
The DGS framework provides ***@***.***` annotation as a shortcut way to wire
up the data fetchers: https://netflix.github.io/dgs/getting-started/
Hope this helps.
…On Tue, Jan 18, 2022 at 8:52 PM Nandy ***@***.***> wrote:
For example: there is a client named A which is developed with
javascript,and a server named B developed with DGS。Now i want to send a
post request to query some data from B, the question is how should we
handle the incoming http request? I found there no any code samples like
controllers in spring mvc, the methods annotated with @DgsData or @DgsQuery
cannot interact with the springmvc request.
—
Reply to this email directly, view it on GitHub
<#825>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5JPXM5R7AHT6NAZIQBOGLUWY7RVANCNFSM5MI5H6GA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example: there is a client named A which is developed with javascript,and a server named B developed with DGS。Now i want to send a post request to query some data from B, the question is how should we handle the incoming http request? I found there no any code samples like controllers in spring mvc, the methods annotated with @DgsData or @DgsQuery cannot interact with the springmvc request.
Beta Was this translation helpful? Give feedback.
All reactions