2

we are trying rxdb as local database and postgresql as a server database and through graphql end point we are able to push and pull data from local to server and vice-versa but how to update and delete data so that it can replicate in both databases .

  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Mar 25 '22 at 06:15

1 Answers1

0

We tried with the graphql schema exactly same in rxdb. We have written pull and push requests using graphql end point, and we created rxdb documents name in database as on same as in the back-end database table for which we are writing push pull queries.

  • Create graphql endpoint with database and back-end.
  • Create database collection document in rxdb with the same name as in server/back-end database.
  • Take queries from the graphql endpoint and create the same schema in rxdb data document collection.
  • Write push and pull queries using graphql end point queries syncing with rxdb document data collection.

Read document for the exact code.

karel
  • 5,489
  • 46
  • 45
  • 50
  • How do you do authorization in push and pull queries? What if the user was malicious and manipulated the data manually? – CodAvo Aug 06 '23 at 10:43