question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Select type of collection

See original GitHub issue

Is it possible to make selectable type of collection like array or object. Example from VueFire is below:

var db = firebaseApp.database()

var vm = new Vue({
  el: '#demo',
  firebase: {
    // simple syntax, bind as an array by default
    anArray: db.ref('url/to/my/collection'),
    // can also bind to a query
    // anArray: db.ref('url/to/my/collection').limitToLast(25)
    // full syntax
    anObject: {
      source: db.ref('url/to/my/object'),
      // optionally bind as an object
      asObject: true,
      // optionally provide the cancelCallback
      cancelCallback: function () {},
      // this is called once the data has been retrieved from firebase
      readyCallback: function () {}
    }
  }
})

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
amranidevcommented, Oct 27, 2018

@asankulov, binding collections as an object is available with the new release 0.3.1.

Thanks.

1reaction
amranidevcommented, Jun 6, 2018

yeah, I see, this will be a decent new feature to be implemented, Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selecting a Collection Class | Microsoft Learn
Learn how to decide which collection class in .NET to choose. Using the wrong type can restrict your use of the collection.
Read more >
Selecting from a Collection - Oninit:
This section describes how to query columns that are defined on collection types. A collection type is a complex data type in which...
Read more >
5.3 Operations on Collection Data Types - Oracle Help Center
The COLLECT function is an aggregate function which creates a multiset from a set of elements. The function takes a column of the...
Read more >
Java: select from collection only elements of provided type
I have a collection of elements of type B and C, which all extends A. I need to filter the collection to get...
Read more >
How to choose Collection in Java? List, Set, Map, and Queue ...
The Java collection framework offers implementation of different data structure like an array, list, set, map, queue, tree, etc and the choice really...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found