Skip to main content
Version: 0.30.0-beta.8

Flow support removed

WatermelonDB's JavaScript source is TypeScript. Flow types, .flowconfig, flow-bin, and @nozbe/watermelondb/types are no longer shipped.

Use TypeScript instead. See the TypeScript example for model, schema, and query typing.

FlowTypeScript
RecordIdimport type { RecordId } from 'nitromelondb'
TableName<T>, ColumnNameimport type { TableName, ColumnName } from 'nitromelondb'
$Call<…> relation id extractorsimport type { RelationId } from 'nitromelondb'
$Diff, $Rest, $ShapeOmit, Partial, Pick

If you are switching from @nozbe/watermelondb, see Migrating from WatermelonDB.