EntityPath

zio.blocks.projection.EntityPath
See theEntityPath companion trait
object EntityPath

Attributes

Companion
trait
Source
EntityPath.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
EntityPath.type

Members list

Value members

Concrete methods

def apply[A](basePath0: String, entityIdField0: String): EntityPath[A]

Manual construction with an explicit folder and id field.

Manual construction with an explicit folder and id field.

Attributes

Source
EntityPath.scala
def derived[A](using schema: Schema[A]): EntityPath[A]

Derive an EntityPath from Schema[A].

Derive an EntityPath from Schema[A].

Finds the @Modifier.id field (or id by name), then derives the folder as pluralize(toSnakeCase(stripIdSuffix(fieldName))) — e.g. userId → users, id → ids (prefer userId or @path to avoid the generic ids folder).

Attributes

Source
EntityPath.scala
def derived[A](pathOverride: String)(using schema: Schema[A]): EntityPath[A]

Attributes

Source
EntityPath.scala