Methods
Static
getColumn
- getColumn(schema: CollectionSchema, fieldName: string, collectionName?: string): ColumnSchema
-
Parameters
-
-
fieldName: string
-
Optional
collectionName: string
Static
getField
- getField(schema: CollectionSchema, fieldName: string, collectionName?: string): FieldSchema
-
Parameters
-
-
fieldName: string
-
Optional
collectionName: string
Static
getRelation
- getRelation(schema: CollectionSchema, relationName: string, collectionName?: string): RelationSchema
-
Parameters
-
-
relationName: string
-
Optional
collectionName: string
Static
isPrimaryKey
- isPrimaryKey(schema: CollectionSchema, fieldName: string): boolean
-
Returns boolean
Static
throwIfAlreadyDefinedField
- throwIfAlreadyDefinedField(schema: CollectionSchema, fieldName: string, collectionName?: string): void
-
Parameters
-
-
fieldName: string
-
Optional
collectionName: string
Returns void
Static
throwIfMissingField
- throwIfMissingField(schema: CollectionSchema, fieldName: string, collectionName?: string): void
-
Parameters
-
-
fieldName: string
-
Optional
collectionName: string
Returns void