Class SchemaDataBuilder<Resource>
Constructors
constructor
Type parameters
Parameters
Methods
attributes
Parameters
Optional handler: SerializeHandler<Dictionary<unknown>> | AllowDeny<Resource>
id
Parameters
handler: SerializeHandler<string>
relationships
Parameters
relationships: Dictionary<SerializeRelationshipsHandler>
type
Parameters
handler: SerializeHandler<string>
untransformAttributes
Parameters
Optional handler: AllowDeny<Resource> | DeserializeHandler<Dictionary<unknown>>
Static includeBelongsToRelationship
Parameters
field: string
resource: string
Optional options: { allowNull?: boolean; included?: boolean }
Optional allowNull?: boolean
Optional included?: boolean
Static includeHasManyRelationship
Parameters
field: string
resource: string
Optional options: { included?: boolean }
Optional included?: boolean
Static linkToBelongsToRelationship
Parameters
relatedIdPath: string
resource: string
Optional linkMeta: Dictionary<unknown>
Static linkToHasManyRelationship
Parameters
parentResource: string
relatedResource: string
Optional linkMeta: Dictionary<unknown>
Static mergeRelationships