automerge / automerge-classic

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
http://automerge.org/
MIT License
14.76k stars 467 forks source link

Work with graphql? #475

Closed hxse closed 2 years ago

hxse commented 2 years ago

Can automerge work with Graphql? Is there any case?

ept commented 2 years ago

Hi @hxse, I don't know of anybody who has connected Automerge and GraphQL so far, although I guess it should be possible in principle. However, the goals of the two are quite different: GraphQL is an API that servers can provide to clients, whereas Automerge is a library for managing data locally within the client.

Can you tell us a bit more about what you are trying to achieve?

hxse commented 2 years ago

It just a simple CRUD local http server, not too complicated, save db file on the hard disk. And support graphql.

ept commented 2 years ago

Okay. I'm afraid I don't have any further guidance on supporting GraphQL using Automerge, but if you explore this further, it would be great if you could write up how you solved it!