Query Documents
How-to perform basic document queries using the JavaScript Client
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"}]
Last modified 21d ago