Hello, everyone. I am new on GrapQL and have an ...
# orm-help
l
Hello, everyone. I am new on GrapQL and have an unusual task. How do I combine GrahQL server c external CRUD API server for data synchronization? Maybe there are some articles? What I mean - there are two servers. One GraphQL server (let's call it - "prod" ) and the second server is an enterprise application with which i want to constantly synchronize data (call it - "enterprise"). For example, there are 3 operations - create a product, delete a product, update a product. Together with synchronization, you should get the following Creating an item: "enterprise" sends a CRUD request for a new receive created product => save it to " prod" Remove the product: Receive a request to delete => delete it on the "prod" => sent CRUD query on "enterprise" => deleted from "enterprise" => receive from "enterprise" status message deletion (successfully, not successfully) Product update: Receive a request to change => change it to the "prod" => sent CRUD query on "enterprise" => receive from "enterprise" status message deletion (successfully, not successfully)
n
You can employ a GraphQL Gateway server. Check https://blog.graph.cool/graphql-api-gateway-graphql-native-1e46e4f179f7.