Batch inserts using DGS or WebClientGraphQLClient.reactiveExecuteQuery #1176
Unanswered
raghuraman-varadharajan
asked this question in
Q&A
Replies: 1 comment
-
|
It would be something like this |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hello,
We have been able to implement most of our GraphQL mutations using the
WebClientGraphQLClient.reactiveExecuteQuery(query, variables)method. However we are looking to improve limiting the number of mutation queries by doing batching by inserting a batch of 100 rows per query.However, the
variablesin theWebClientGraphQLClient.reactiveExecuteQuery(query, variables)is a Map<String, Object> . If I want to bulk insert a list of rows then how would I pass the parameter to the reactiveExecuteQueryMethod for a query like belowWould it be a
Map.of('objects', List.of(new Person(), new Person()))or should I do it some other wayBeta Was this translation helpful? Give feedback.
All reactions