GithubHelp home page GithubHelp logo

redux-firestore-middleware's Introduction

API

/**
 * @param types* {Array} - synchronous, success, and failure redux action types
 * @param payload {Object} - synchronous action payload
 * @param meta {Object} - metadata to pass through with both synchronous and asynchronous actions
 * @param bailout {Func} - function defined by user deciding, given redux state, whether to stop an api call
 * @param schema* {Object} - describes how returning data should be transformed
 *   @param name* {String} - what name to give the entity/ies
 *   @param key {String} - what entity property to use as the entities key value | defaults to 'id'
 *   @param transform {Func} - function given an entity as parameter
 * @param query* {Object} - describes the firestore query to build
 *   @param data {Object} - data to post to fb
 *   @param options {Object} - any options that need to be passed to fb (ex: {merge: true})
 *   @param collection* {String} - name of collection to access
 *   @param doc {String} - name of doc to access. collection prop is required
 *   @param subcollections {Array} - array of {collection, doc} values describing a path of nested records to access
 *   @param where {String || Array} - query string(s) describing queries to be made on the record(s). 'status == completed'
 *   @param method* {String} - firestore operation to execute (onSnapshot, get, update, set, add)
 */

redux-firestore-middleware's People

Contributors

mikeyamadeo avatar

Watchers

James Cloos avatar  avatar

Forkers

vladvmoisuc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.