Hi, all.
I need clarification on queries; when I do a query and it doesn't find a match, will it throw an error (into the catch section) or simply set totalCount property of the results to 0?
Debugging is a bit difficult on this one.
TIA
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Aberquist:
Yes you figured it out.
Check out this post for a useful pattern dealing with query and duplicate member records.
https://www.wix.com/code/home/forum/community-discussion/prevent-contact-duplicates-in-custom-registration
Steve
Hi abergquist,
I am thankful for the information you posted back. This is helpful.
Figured it out; in the "then" section, if results.items.length === 0, it wasn't found; otherwise, it was found.