How to use the entities.DbNotebook function in entities

To help you get started, we’ve selected a few entities examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix / quix / quix-frontend / service / src / modules / search / search.spec.ts View on Github external
const createNotebook = async (user = defaultUser) => {
    const notebook = new DbNotebook({
      id: uuid(),
      owner: user,
      name: 'new name',
    } as any);
    return notebookRepo.save(notebook);
  };
github wix / quix / quix-frontend / service / src / modules / web-api / web-api.spec.ts View on Github external
function createNotebook(defaultUser: string, notebookName = 'New notebook') {
  const notebook = new DbNotebook();

  notebook.id = uuid();
  notebook.owner = defaultUser;
  notebook.name = notebookName;

  return notebook;
}