Constructs a new record service object.
Service configuration.
Create some records on the server.
An array of dicts, array of hayson dicts, list of dicts or a grid.
The resultant grid of the create operation. The grid contains a 'created' number property for the number of records created in the meta.
Delete some records via a haystack filter.
This method should be used with extreme caution! This command could unintentionally delete critical records in a database.
The haystack filter to query by.
A grid with the records that were deleted. Each record only
contains the id
and mod
properties. The grid meta contains an
deleted
number property for the total number of records deleted.
Delete multiple records via their ids.
A grid with the records that were deleted. Each record only
contains the id
and mod
properties. The grid meta contains an
deleted
number property for the total number of records deleted.
Duplicate an existing record in the database.
The duplicate options.
The number of times to duplicate a record.
The id of the record to duplicate.
Whether to also duplicate any contained child records.
A list of top level record ids that were duplicated. This does not include any child record ids that were duplicated.
Query some records via a haystack filter.
The haystack filter to query by.
Optional
options: ReadOptionsOptional options for read operation.
The result of the read operation.
Read multiple records via their ids.
Optional
options: ReadOptionsOptional options for read operation.
The result of the read operation.
Update some records via their ids.
The dicts to update. Each record must specify an id.
A grid with the records that were updated. Each record only
contains the id
and mod
properties. The grid meta contains an
updated
number property for the total number of records updated.
Update by a filter.
This method should be used with extreme caution! This command could unintentionally update critical records in a database.
The dict to be applied to all records found.
A grid with the records that were updated. Each record only
contains the id
and mod
properties. The grid meta contains an
updated
number property for the total number of records updated.
An implementation of the FIN record service.
Please note, this is currently not part of the official Haystack standard.