0.0.5 • Published 3 years ago

fndb v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

FnDB – The React Native Document database/ORM

FnDB is an open-source document database and ORM for React Native.

FnDB was created to help react native developers build offline first applications.

Using FnDB

  import { createModel } from "fndb";

  const User = createModel("User", {
    name: String,
    age: Number,
    admin: Boolean
  });

  const id = await User.newDoc({
    name: "duder",
    age: 21,
    admin: true
  });

  const { name, age, admin } = await User.getDoc(id);

  await User.updateDoc(id, {
    admin: false
  });

Contributing

We're always looking for new contributors!