I am programming using the REST API and NXQL. I ran into some problems and found it easier to test queries first using Nuxeo Shell : Nuxeo Shell in batch mode
My goal is to have a listing of items found in a workspace or folder. I tried the following queries:
query "SELECT * FROM Document WHERE ecm:path = '/default-domain/workspaces/Trial workspace'"
query "SELECT * FROM Document WHERE ecm:path = '/default-domain/workspaces/Trial workspace/'"
query "SELECT * FROM Document WHERE ecm:path = '/default-domain/workspaces/Trial workspace/*'"
query "SELECT * FROM Document WHERE ecm:path STARTSWITH '/default-domain/workspaces/Trial workspace'"
These result in either no listing, a single item being the name of the path itself or the entire contents of the workspace including all items in subfolders, workspaces, etc which is way too much.
I also experimented a bit based on Existing Document Types (Dublin Core) and of course NXQL specification, but never got the result I wanted.
Basically I would like to have the same thing as you would have when using the Nuxeo GUI: a view of items in a folder, workspace, collection or section and not something residing in parent or child branches/items.
Q: How do I get what I want please?