Skip to main content

Generating resolvers

Once you have completed writing your configuration details, simply call the exposed generator function to get your generated resolvers. These resolvers can be passed directly into the Collab server.

import CollabServer from '@pdftron/collab-server';
import SQLResolverGenerator from '@pdftron/collab-sql-resolver-generator';
import configuration from './configuration'; // config object from the 'configuration' guide
const resolvers = SQLResolverGenerator(configuration);
const server = new CollabServer({

Next steps#