You can also prefix each document KEY in the bucket with document type. ex. “EMPLOYEE::xxxxxx”
CRETE INDEX primary ON `silver-spoon`;
SELECT * FROM `silver-spoon` WHERE META().id LIKE "EMPLOYEE::%";
You can also prefix each document KEY in the bucket with document type. ex. “EMPLOYEE::xxxxxx”
CRETE INDEX primary ON `silver-spoon`;
SELECT * FROM `silver-spoon` WHERE META().id LIKE "EMPLOYEE::%";