Breaking changes 🔥
Session methods - lazily.load() and include().load() - #210
- set
object_type
argument as optional - inverted the
object_type
andkey
arguments order lazily.load()
now takes a list ofstr
document IDs, not*ids
'Id' property won't be stored at the server anymore - #211
- Document id is still available as a value of the Id property, but the value is set after serialization
- Documents loaded as dict objects won't contain the Id key (still available via
session.advanced.get_metadata_for(...)["@id"]
orsession.advanced.get_document_id()
) - Custom from_json methods that have been setting the Id property should skip that step, as the Id property will be set to a valid value after the serialization
What's new 🌬️
- Added include time series API to subscription includes builder
- Storing a
dict
-document while providing document id collection prefix (e.g.session.store({"Name":"Graziano"}, "Users/"}
) stores the document under valid collection (e.g. Users), not"dicts"
- Made
object_type
argument inget_compare_exchange_values()
optional - Fixed
load_starting_with_into_stream()
and made it returnbytes
stream, instead of passing it as an argument to be modified within the method itself - Marked
object_type
argument as optional in many methods across the API - Fixed a bug that caused an error when disposing uninitialized
RequestExecutor
- Improved
session.time_series_for()
error messages