Skip to content

How to query after query - List #674

@Angular222

Description

@Angular222

Angular:
2.0.1

Firebase:
3.4.0

AngularFire:
2.0.0.beta.4

posts
     randomId
         username
         age

I want to be able to query by child and then instead of returning the entire object just return the property I need which is on the same level

subscribePostsAgeForUsername(username: string): Observable<string[]>{
  return this.af.database.list('posts', {
    query: {
        orderByChild: 'username',
        equalTo: username
    }
});
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions