Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 654 Bytes

File metadata and controls

25 lines (19 loc) · 654 Bytes
description
How-to perform basic document queries using the JavaScript Client

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.

{% code overflow="wrap" %}

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)
}

{% endcode %}

[{"@type" : "Player",
  "name" : "Doug",
  "position" : "Full Back"}]