How to integrate parse server with updated parse server?

Hey guys,

I’m currently working on connecting the streams API to my parse server. I have set up my parse server using the Moralis Video tutorial, however the parse server migration repo used in the video is not set up to work with streams.

As per this post: Using event-syncs in Moralis SDK v2 & Parse Server we have to use the updated server with a patch. However, the author of the post mentions that the patch is not supported by the old repo, so we have to create the parse server with the new repo and connect the old repo to the new one (basically connecting parse to parse).

The author says that the instructions to do this are in the parse docs, however I couldn’t find them there.

How can I set up the old repo with the new repo to work with Moralis Streams?

Thanks!

It should be the Parse.initialize example in the Parse docs that were linked.

1 Like

Hey @alex

I’m not using the main parse server repo, instead I’m using the parse-server example, since the main repo is too big and contains many unnecessary files. I am able to successfully install the streams plugin, however, when I apply the patch it says src/ParseServer.js not found.

I assume the patch is looking for the files in the wrong place. Any idea how I can change this?

I’m going through the initialize patch file and I see the following path names. I assume I have to change them (for mongo and parse). Should I leave the ‘a’ and ‘b’ and the ‘diff’ and ‘git’ or do I change the entire name to the respective path names I have in my folder.

diff --git a/src/Adapters/Storage/Mongo/MongoSchemaCollection.js b/src/Adapters/Storage/Mongo/MongoSchemaCollection.js
--- a/src/Adapters/Storage/Mongo/MongoSchemaCollection.js
+++ b/src/Adapters/Storage/Mongo/MongoSchemaCollection.js

EDIT: Do I even need to use the moralis-streams-parse-server package or can I use streams with parse server directly? I’m not using the old parse migration repo and it’s not specified whether the patch and moralis-streams-parse-server package is only for if you want to use the old repo?

moralis-streams-parse-server package was created only for latest version of parse server, it doesn’t work with the repo from https://github.com/MoralisWeb3/Moralis-JS-SDK/tree/main/demos/parse-server-migration

those patches will add the possibility to use bulk operations with mongo db and also to support decimal type in mongo db, you can also try to add Streams API functionality in parse server without those patches, you can use that repository as a tutorial of how it can be done

1 Like