PHP 7+ syntax
This commit is contained in:
parent
49572a6937
commit
b6c5c303b2
|
@ -258,7 +258,7 @@ $utopia->get('/v1/database/:collectionId/documents')
|
|||
->label('sdk.method', 'listDocuments')
|
||||
->label('sdk.description', 'Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project documents. [Learn more about different API modes](/docs/modes).')
|
||||
->param('collectionId', null, function () {return new UID();}, 'Collection unique ID.')
|
||||
->param('filters', array(), function () {return new ArrayList(new Text(128));}, 'Array of filter strings. Each filter is constructed from a key name, comparison operator (=, !=, >, <, <=, >=) and a value. You can also use a dot (.) separator in attribute names to filter by child document attributes. Examples: \'name=John Doe\' or \'category.$uid>=5bed2d152c362\'', true)
|
||||
->param('filters', [], function () {return new ArrayList(new Text(128));}, 'Array of filter strings. Each filter is constructed from a key name, comparison operator (=, !=, >, <, <=, >=) and a value. You can also use a dot (.) separator in attribute names to filter by child document attributes. Examples: \'name=John Doe\' or \'category.$uid>=5bed2d152c362\'', true)
|
||||
->param('offset', 0, function () {return new Range(0, 900000000);}, 'Offset value. Use this value to manage pagination.', true)
|
||||
->param('limit', 50, function () {return new Range(0, 1000);}, 'Maximum number of documents to return in response. Use this value to manage pagination.', true)
|
||||
->param('order-field', '$uid', function () {return new Text(128);}, 'Document field that results will be sorted by.', true)
|
||||
|
|
Loading…
Reference in a new issue