From e52f4bc2a70d59802a5317038881fd1120c5a106 Mon Sep 17 00:00:00 2001 From: Anthony Keenan Date: Tue, 6 Nov 2018 09:12:13 +0000 Subject: [PATCH] Fixed a missing file error when building docs (#4167) --- docs/source/tutorial-attachments.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/source/tutorial-attachments.rst b/docs/source/tutorial-attachments.rst index 4c01efb226..871231afb0 100644 --- a/docs/source/tutorial-attachments.rst +++ b/docs/source/tutorial-attachments.rst @@ -50,9 +50,9 @@ a JVM client. Searching for attachments ------------------------- -Attachments metadata can be used to query, in the similar manner as :doc:`api-vault-query`. +Attachment metadata can be queried in a similar way to the vault (see :doc:`api-vault-query`). -``AttachmentQueryCriteria`` can be used to build a query, utilizing set of operations per column, namely: +``AttachmentQueryCriteria`` can be used to build a query using the following set of column operations: * Binary logical (AND, OR) * Comparison (LESS_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL) @@ -61,9 +61,11 @@ Attachments metadata can be used to query, in the similar manner as :doc:`api-va * Nullability (IS_NULL, NOT_NULL) * Collection based (IN, NOT_IN) -``And`` and ``or`` operators can be used to build queries of arbitrary complexity. Example of such query: +The ``and`` and ``or`` operators can be used to build complex queries. For example: -.. literalinclude:: ../../node/src/test/kotlin/net/corda/node/services/persistence/NodeAttachmentStorageTest.kt +.. container:: codeset + + .. literalinclude:: ../../node/src/test/kotlin/net/corda/node/services/persistence/NodeAttachmentServiceTest.kt :language: kotlin :start-after: DOCSTART AttachmentQueryExample1 :end-before: DOCEND AttachmentQueryExample1