Versions in this module Expand all Collapse all v1 v1.7.1 Jun 15, 2026 v1.7.0 Jun 13, 2026 Changes in this version + type SystemMongoDriver struct + Client *mongo.Client + Conf *models.Config + Database *mongo.Database + DriverCredential *models.DriverCredentials + func GetSystemMongoDriver(driverCredentials *models.DriverCredentials, conf *models.Config) (*SystemMongoDriver, error) + func (m *SystemMongoDriver) AddATeamMemberToProject(ctx context.Context, req *models.TeamMemberAddRequest) error + func (m *SystemMongoDriver) AddSystemUserMetaInfo(ctx context.Context, doc *types.DefaultDocumentStructure) (*types.DefaultDocumentStructure, error) + func (m *SystemMongoDriver) AddTeamMetaInfo(ctx context.Context, docs []*models.SystemUser) ([]*models.SystemUser, error) + func (m *SystemMongoDriver) AddWebhookToProject(ctx context.Context, doc *models.Webhook) (*models.Webhook, error) + func (m *SystemMongoDriver) AssignProjectToOrganization(ctx context.Context, orgId, userId, projectId string) error + func (m *SystemMongoDriver) AssignTeamToOrganization(ctx context.Context, orgId, userId, teamId string) error + func (m *SystemMongoDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error + func (m *SystemMongoDriver) CheckProjectName(ctx context.Context, name string) error + func (m *SystemMongoDriver) CheckProjectWithRoles(ctx context.Context, userId, projectId string) (*models.ProjectWithRoles, error) + func (m *SystemMongoDriver) CheckTeamMemberExists(ctx context.Context, projectId string, memberID string) error + func (m *SystemMongoDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error + func (m *SystemMongoDriver) CountProjectUsersByRole(ctx context.Context, projectID string) (map[string]int, error) + func (m *SystemMongoDriver) CreateOrganization(ctx context.Context, org *models.Organization) (*models.Organization, error) + func (m *SystemMongoDriver) CreateProject(ctx context.Context, userId string, project *models.Project) (*models.Project, error) + func (m *SystemMongoDriver) CreateSchemaOperation(ctx context.Context, op *models.SchemaOperation) error + func (m *SystemMongoDriver) CreateSystemUser(ctx context.Context, user *models.SystemUser) (*models.SystemUser, error) + func (m *SystemMongoDriver) CreateTeam(ctx context.Context, team *models.Team) (*models.Team, error) + func (m *SystemMongoDriver) CreateUser(ctx context.Context, row *models.User) (*models.User, error) + func (m *SystemMongoDriver) DeleteModelType(ctx context.Context, projectID, modelName string) error + func (m *SystemMongoDriver) DeleteProjectFromSystem(ctx context.Context, projectId string) error + func (m *SystemMongoDriver) DeleteUser(ctx context.Context, projectID, userID string) error + func (m *SystemMongoDriver) DeleteWebhook(ctx context.Context, projectId, hookId string) error + func (m *SystemMongoDriver) EnsureSystemBootstrap(ctx context.Context) error + func (m *SystemMongoDriver) FindOrganizationAdmin(ctx context.Context, orgId string) (*models.SystemUser, error) + func (m *SystemMongoDriver) FindUserOrganizations(ctx context.Context, userId string) ([]*models.Organization, error) + func (m *SystemMongoDriver) FindUserProjects(ctx context.Context, userId string) ([]*models.Project, error) + func (m *SystemMongoDriver) FindUserProjectsWithRoles(ctx context.Context, userId string) ([]*models.ProjectWithRoles, error) + func (m *SystemMongoDriver) FindUserTeams(ctx context.Context, userId string) ([]*models.Team, error) + func (m *SystemMongoDriver) GetOrganizations(ctx context.Context, userId string) (*models.SearchResponse[models.Organization], error) + func (m *SystemMongoDriver) GetProject(ctx context.Context, id string) (*models.Project, error) + func (m *SystemMongoDriver) GetProjectTeams(ctx context.Context, projectId string) (*models.Team, error) + func (m *SystemMongoDriver) GetProjects(ctx context.Context, keys []string) ([]*models.Project, error) + func (m *SystemMongoDriver) GetSchemaOperation(ctx context.Context, id string) (*models.SchemaOperation, error) + func (m *SystemMongoDriver) GetSystemUser(ctx context.Context, id string) (*models.SystemUser, error) + func (m *SystemMongoDriver) GetSystemUserByEmail(ctx context.Context, email string) (*models.SystemUser, error) + func (m *SystemMongoDriver) GetSystemUsers(ctx context.Context, keys []string) ([]*models.SystemUser, error) + func (m *SystemMongoDriver) GetTeams(ctx context.Context, userId string) ([]*models.Team, error) + func (m *SystemMongoDriver) GetTeamsMembers(ctx context.Context, projectId string) ([]*models.SystemUser, error) + func (m *SystemMongoDriver) GetUser(ctx context.Context, projectID, userID string) (*models.User, error) + func (m *SystemMongoDriver) GetUserByUsername(ctx context.Context, projectID, username string) (*models.User, error) + func (m *SystemMongoDriver) GetWebHook(ctx context.Context, projectId, hookId string) (*models.Webhook, error) + func (m *SystemMongoDriver) ListSchemaOperationsByStatus(ctx context.Context, projectID string, statuses []string, limit int) ([]*models.SchemaOperation, error) + func (m *SystemMongoDriver) ListUsersByEmail(ctx context.Context, projectID, email string) ([]*models.User, error) + func (m *SystemMongoDriver) ListUsersByGoogleSub(ctx context.Context, projectID, googleSub string) ([]*models.User, error) + func (m *SystemMongoDriver) ListUsersByPhone(ctx context.Context, projectID, phone string) ([]*models.User, error) + func (m *SystemMongoDriver) PersistProjectModelTypes(ctx context.Context, projectID string, schemaModels []*models.ModelType) error + func (m *SystemMongoDriver) Ping() error + func (m *SystemMongoDriver) RemoveATeamFromOrganization(ctx context.Context, orgId, userId, teamId string) error + func (m *SystemMongoDriver) RemoveATeamMemberFromProject(ctx context.Context, projectId string, memberID string) error + func (m *SystemMongoDriver) RemoveProjectFromOrganization(ctx context.Context, orgId, userId, projectId string) error + func (m *SystemMongoDriver) RunMigration(ctx context.Context) error + func (m *SystemMongoDriver) SaveAuditLog(ctx context.Context, auditLog *models.AuditLogs) error + func (m *SystemMongoDriver) SaveProjectAuthenticationSettings(ctx context.Context, projectID string, auth *models.AuthenticationSettings) error + func (m *SystemMongoDriver) SaveProjectStorageSettings(ctx context.Context, projectID string, storage *models.StorageSettings) error + func (m *SystemMongoDriver) SaveRawData(ctx context.Context, collection string, data map[string]interface{}) error + func (m *SystemMongoDriver) SearchAuditLogs(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.AuditLogs], error) + func (m *SystemMongoDriver) SearchFunctions(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.ApitoFunction], error) + func (m *SystemMongoDriver) SearchProjectUsers(ctx context.Context, projectID string, limit, offset int) ([]*models.User, int, error) + func (m *SystemMongoDriver) SearchProjects(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Project], error) + func (m *SystemMongoDriver) SearchResource(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[any], error) + func (m *SystemMongoDriver) SearchSystemUsers(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.SystemUser], error) + func (m *SystemMongoDriver) SearchWebHooks(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Webhook], error) + func (m *SystemMongoDriver) TouchProjectUpdatedAt(ctx context.Context, projectID string) error + func (m *SystemMongoDriver) UpdateProject(ctx context.Context, project *models.Project, replace bool) error + func (m *SystemMongoDriver) UpdateSchemaOperation(ctx context.Context, op *models.SchemaOperation) error + func (m *SystemMongoDriver) UpdateSystemUser(ctx context.Context, user *models.SystemUser, replace bool) error + func (m *SystemMongoDriver) UpdateUser(ctx context.Context, row *models.User) error + func (m *SystemMongoDriver) UpsertModelType(ctx context.Context, projectID string, mt *models.ModelType) error