triniwiz / triniwiz/nativescript-plugins

[Couchbase] TypeError: CBLQueryExpression.property(...).between is not a function

Open
#71 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Couchbase iOS
Dominant language
C
Stars
87
Forks
57
Avg merge
1h 36m
Merged PRs (30d)
4

Description

I'm using Couchbase plugin on android for some time now and had zero issues.
I ran one of our apps on an Apple device for the first time and the following error occured:
TypeError: CBLQueryExpression.property(...).between is not a function

I use latest version of plugin and my apple device runs os 13.5.
I tried to log between function inside plugin sources and it returns undefined.

Additionally, after checking Couchbase lite docs, I found out this function is a pair with and.
https://docs.couchbase.com/mobile/2.8.0/couchbase-lite-objc/Classes/CBLQueryExpression.html#/c:objc(cs)CBLQueryExpression(im)between:and:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the CBLQueryExpression.property(...).between entry point in the plugin sources and compare its Apple-platform implementation with the Android behavior. Use the linked Couchbase Lite documentation to verify the between/and API contract, then reproduce the query on an Apple device. Done means between is available and behaves consistently on the affected platform.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, ios, javascript
Domain
databases, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.