Class: Session

Session

new Session(db, state, withMutationsopt, batchTokenopt)

Creates a new Session.

Parameters:
Name Type Attributes Description
db Database

a Database instance

state Object

the database state

withMutations Boolean <optional>

whether the session should mutate data

batchToken Object <optional>

used by the backend to identify objects that can be mutated.

Source: