1
0
Fork 0
arangodb/Documentation/Books/HTTP/SimpleQuery
Simran 496ab3af05 Doc - Deprecation notes 3.4 (#6405) 2018-10-23 17:45:07 +02:00
..
README.md Doc - Deprecation notes 3.4 (#6405) 2018-10-23 17:45:07 +02:00

README.md

HTTP Interface for Simple Queries

{% hint 'warning' %} The Simple Queries API is deprecated from version 3.4.0 on. These endpoints should no longer be used. They are superseded by AQL queries. {% endhint %}

Simple Queries

This is an introduction to ArangoDB's HTTP interface for simple queries.

Simple queries can be used if the query condition is straight forward simple, i.e., a document reference, all documents, a query-by-example, or a simple geo query. In a simple query you can specify exactly one collection and one condition. The result can then be sorted and can be split into pages.

Working with Simples Queries using HTTP

To limit the amount of results to be transferred in one batch, simple queries support a batchSize parameter that can optionally be used to tell the server to limit the number of results to be transferred in one batch to a certain value. If the query has more results than were transferred in one go, more results are waiting on the server so they can be fetched subsequently. If no value for the batchSize parameter is specified, the server will use a reasonable default value.

If the server has more documents than should be returned in a single batch, the server will set the hasMore attribute in the result. It will also return the id of the server-side cursor in the id attribute in the result. This id can be used with the cursor API to fetch any outstanding results from the server and dispose the server-side cursor afterwards.

@startDocuBlock put_api_simple_all

@startDocuBlock put_api_simple_by_example

@startDocuBlock put_api_simple_first_example

@startDocuBlock RestLookupByKeys

@startDocuBlock put_api_simple_any

@startDocuBlock RestRemoveByKeys

@startDocuBlock put_api_simple_remove_by_example

@startDocuBlock put_api_simple_replace_by_example

@startDocuBlock put_api_simple_update_by_example

@startDocuBlock put_api_simple_range

@startDocuBlock put_api_simple_near

@startDocuBlock put_api_simple_within

@startDocuBlock put_api_simple_within_rectangle

@startDocuBlock put_api_simple_fulltext