Inbound

A primary key is considered inbound if it's included in the stored objects.

Examples of Inbound Primary Key

db.version(1).stores({
    friends: "id"
});
db.version(1).stores({
    friends: "id,name"
});
db.version(1).stores({
    friends: "++id,name"
});

Adding / Updating Inbound Values

await db.friends.add({id: "fooId", name: "Foo"});

await db.friends.put({id: "fooId", name: "Foo"});

await db.friends.bulkAdd([{id: "id1", name: "Friend1"}, {id: "id2", name: "Friend2"}]);

await db.friends.bulkPut([{id: "id1", name: "Friend1"}, {id: "id2", name: "Friend2"}]);

Examples of Outbound Primary Key

Adding / Updating Outbound Values