-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are there any chances to merge multiple schemas' data together? #590
Comments
Or i could name schema on my own so it could sync all data automatically? 😃 |
Hi @JasonkayZK!
Hui! Is this a sentence from us? That's indeed a bit confusing, we should improve that.
If nodes want to collaborate on the same data (we call them "documents") they also need to use the same schemas. To find out if your schemas match you can look at their "schema id", for example: To install a schema on a node (it is a little bit like a database migration) there are different strategies:
|
Exactly! So what you would do is:
From this point on your node will support this schema and clients can start using it |
Thanks for your explaination. ❤️
|
I figured it out! Once i kept the same key pair to create the schema, the schema id was exactly the same just as the |
I saw this issue which is exactly what i want, thanks again for your amazing job! |
We've implemented this logic in our Meli Android app here: https://github.com/p2panda/meli/blob/main/packages/app/lib/io/p2panda/schemas.dart#L40-L83 - it is fairly easy and can be implemented in other languages in case you need it for your app and you don't want to wait for
|
That's great, i'm working on it right now! Thanks again for this cool protocol. 👍 |
Hi there, i'm developing a local-first application recently, and i think p2panda can be a good choice.
But there is a problem here:
Each devices will create it's own schema for storing data especially when it's offline during the first launch.
So when the devices turned online, multiple schemas will be synced, such as
person_002030...
,person_002031...
.But they all had the same name
person
in all_schema_definition_v1.So, i'm wondering if it could merge multiple schemas' data together for query? (Sorry for not very familiar with GraphQL)
The text was updated successfully, but these errors were encountered: