Class: FirebaseAdapter

FirebaseAdapter


new FirebaseAdapter(opts)

FirebaseAdapter class.

Method parameters:
Name Type Argument Description
opts Object <optional>

Configuration opts.

Properties
Name Type Argument Default Description
basePath String <optional>
''

See FirebaseAdapter#basePath

Details
Source
src/index.js, line 82
Example
import {DataStore} from 'js-data'
import {FirebaseAdapter} from 'js-data-firebase'
const store = new DataStore()
const adapter = new FirebaseAdapter()
store.registerAdapter('firebase', adapter, { 'default': true })

Members


<static> version

Details of the current version of the js-data-firebase module.

Details
Type Source
Object src/index.js, line 546
Properties:
Name Type Description
version.full String

The full semver value.

version.major Number

The major version number.

version.minor Number

The minor version number.

version.patch Number

The patch version number.

version.alpha String | Boolean

The alpha version value, otherwise false if the current version is not alpha.

version.beta String | Boolean

The beta version value, otherwise false if the current version is not beta.


basePath

TODO

Details
Type Source
String src/index.js, line 59

baseRef

The ref instance used by this adapter. Use this directly when you need to write custom queries.

Details
Type Source
Object src/index.js, line 102

Methods


<static> extend(instanceProps, classProps)

Alternative to ES6 class syntax for extending FirebaseAdapter.

Method parameters:
Name Type Argument Description
instanceProps Object <optional>

Properties that will be added to the prototype of the subclass.

classProps Object <optional>

Properties that will be added as static properties to the subclass itself.

Return value:
Type Description
Constructor

Subclass of FirebaseAdapter.

Details
Source
src/index.js, line 129
Examples

Using the ES2015 class syntax.

class MyFirebaseAdapter extends FirebaseAdapter {...}
const adapter = new MyFirebaseAdapter()

Using FirebaseAdapter.extend.

var instanceProps = {...}
var classProps = {...}

var MyFirebaseAdapter = FirebaseAdapter.extend(instanceProps, classProps)
var adapter = new MyFirebaseAdapter()