Skip to content

And Query is not working returning empty result. #79

@richard457

Description

@richard457

Describe the bug
When I do Query like select * from document where sth =sth and sth = sth it does not work

To Reproduce

Future<List<Map<String, dynamic>>> filter(
QueryBuilder.select([SelectResult.all()])
        .from(CoreDB.instance.dbName)
        .where(
          Expression.property(property)
              .equalTo(
                Expression.string(equator),
              )
              .and(
                Expression.property(andProperty).equalTo(
                  Expression.string(andEquator),
                ),
              )
}

Expected behavior
I expect that if I have a document that has for example table='users' name='richard murag' id=WDF to be returned by that
Query This is How I would call it final ```
List<Map<String, dynamic>> product = await _databaseService.filter(
equator: 'richard murag',
property: 'name',
and: true,
andProperty: 'table',
andEquator: 'users,
);


 - OS: [android 29 sdk]

 - Version [couchbase_lite: ^2.7.1+6]

I need your help on this.

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