mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
Updating template ID references (#6988)
the format changed a while ago, we just never updated this doc changelog_begin changelog_end
This commit is contained in:
parent
9acb47d994
commit
de2fef6b10
@ -4,10 +4,14 @@
|
|||||||
Query language
|
Query language
|
||||||
##############
|
##############
|
||||||
|
|
||||||
The body of ``POST /v1/query`` looks like so::
|
The body of ``POST /v1/query`` looks like so:
|
||||||
|
|
||||||
{"templateIds": [...template IDs...],
|
.. code-block:: text
|
||||||
"query": {...query elements...}}
|
|
||||||
|
{
|
||||||
|
"templateIds": [...template IDs...],
|
||||||
|
"query": {...query elements...}
|
||||||
|
}
|
||||||
|
|
||||||
The elements of that query are defined here.
|
The elements of that query are defined here.
|
||||||
|
|
||||||
@ -105,12 +109,14 @@ is no way that the above query could be written to match ``A`` but never
|
|||||||
|
|
||||||
For these reasons, as with LF value input via JSON, queries written in
|
For these reasons, as with LF value input via JSON, queries written in
|
||||||
JSON are also always interpreted with respect to some specified LF types
|
JSON are also always interpreted with respect to some specified LF types
|
||||||
(e.g. template IDs). For example::
|
(e.g. template IDs). For example:
|
||||||
|
|
||||||
{"templateIds": [{"moduleName": "Foo", "entityName": "A"},
|
.. code-block:: json
|
||||||
{"moduleName": "Foo", "entityName": "B"},
|
|
||||||
{"moduleName": "Foo", "entityName": "C"}],
|
{
|
||||||
"query": {"foo": "bar"}}
|
"templateIds": ["Foo:A", "Foo:B", "Foo:C"],
|
||||||
|
"query": {"foo": "bar"}
|
||||||
|
}
|
||||||
|
|
||||||
will treat ``"foo"`` as a field equality query for A and B, and
|
will treat ``"foo"`` as a field equality query for A and B, and
|
||||||
(supposing templates' associated data types were permitted to be
|
(supposing templates' associated data types were permitted to be
|
||||||
|
Loading…
Reference in New Issue
Block a user