This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Replies: 2 comments
-
|
Are you storing your phone numbers as strings? Try getting the item by key and compare the returned data with your fetch query. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
You better use get() method rather than fetch() when you retrieve only one item. If you use Node.js, don't forget to use "await" keyword, otherwise, you will get a promise object. // get one record {key:'xxxxxx', 'phoneNumber': '07011111111'} with the key or id ''xxxxxx''
const phone_number_record = await db.get("xxxxxxx")
// get an array of one record [ {key:'xxxxxx', 'phoneNumber': '07011111111'} ]
const array_of_phone_number_record = await db.fetch({'phoneNumber': '07011111111'}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to fetch with a phone number, but when I fetch with a matching value, I don't get the correct result.
0 results
Beta Was this translation helpful? Give feedback.
All reactions