Skip to main content

Hooking up to the server

The collab server requires you to provide a set of resolvers in order to link the server to your database.

The default database ships with these resolvers, so there is no need to write your own!

To get the resolvers, use the getResolvers API. You can pass the result directly into the server.

const db = new CollabDatabase({
...yourParams
});
await db.connectDB();
const resolvers = db.getResolvers();
const server = new CollabServer({
resolvers,
...otherParams
})
server.start();

Next steps#