Query Documents
Get a list of documents matching a query. For more advanced queries, take a look at the GraphQL and WOQL how-to guides.
const queryDocuments = async () => {
const queryTemplate = { "position": "Full Back" }
const result = await client.getDocument({"@type":"Player","as_list":true,"query":queryTemplate});
console.log("Query Documents",result)
}
[{"@type" : "Player",
"name" : "Doug",
"position" : "Full Back"}]