-
Notifications
You must be signed in to change notification settings - Fork 15
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
JavaScript examples #30
Comments
Yes, I am considering using PeerDB. |
Plain JS examples will be very usefull. |
+1 |
1 similar comment
+1 |
I'm making an attempt to convert our Peerdb code to ES6 here: CommonGarden/Grow-IoT#189 Haven't got it working quite yet, but perhaps it's a start? Anyone made any individual progress on this? |
+1 |
So maybe a simple post here with reference to API and it's counterpart in js would suffice. There's decaffeinate, but it looks dodgy judging by jake's commit for translation. |
Or I suppose that given that you're basically defining a schema, CS is way to go. If running generator use "`"/backtick for generator property value of a function that you define with JS:
|
+1 Could you provide a simple example? Is this library still being maintained as by Meteor 1.5? |
It is. It is so stable that there is no need to do much. :-) Sadly, I do not have time at the moment to provide examples. |
Tried the following but I couldn't understand how to add the ReferenceFields as the entire Person object is inserted in the collection and the Post embedded document doesn't update when displayName is updated in the Person instance.
Results:
|
Hi @mitar would you be able to clarify how to insert the references in the collections? I couldn't make it work even in coffescript. The references don't get updated!
Results:
|
Hi @mitar I finally came up with a working example in ES6 with:
|
And this is how to test: Document.startup() is required so the functionality can be started after PeerDB observers are initialised.
|
Coffeescript examples are cool, but still a little esoteric. Please consider providing plain JS examples instead.
The text was updated successfully, but these errors were encountered: