Select type of collection
See original GitHub issueIs 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:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@asankulov, binding collections as an object is available with the new release
0.3.1
.Thanks.
yeah, I see, this will be a decent new feature to be implemented, Thanks a lot!