package
0.6.3
Repository: https://github.com/go-saas/saas.git
Documentation: pkg.go.dev

# README

Ent adapter

  • Enable EntQL Filtering and Privacy Layer features Modify your ent/generate.go

    go generate ... --feature intercept,schema/snapshot ...
    
  • Embed mixin into your schema

    import (
    	sent "github.com/go-saas/saas/ent"
    )
    ...
    // Post holds the schema definition for the Post entity.
    type Post struct {
        ent.Schema
    }
    
    func (Post) Mixin() []ent.Mixin {
        return []ent.Mixin{
            sent.HasTenant{},
        }
    }
    

# Functions

HasOp is a condition testing mutation operation.
If executes the given hook under condition.
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

Condition is a hook condition function.