Andrii
02/11/2025, 5:14 PMpython
metadata = struct_pb2.Struct()
metadata.update({"some": "metadata"})
write_relationships_request = WriteRelationshipsRequest(updates=relationship_update_requests, optional_transaction_metadata=metadata)
and always having an error details = "client doesn't support type map[string]interface {}"
. Maybe somebody can share their experience?yetitwo
02/11/2025, 5:34 PMAndrii
02/11/2025, 5:34 PMyetitwo
02/11/2025, 5:36 PMyetitwo
02/11/2025, 5:36 PMyetitwo
02/11/2025, 5:37 PMyetitwo
02/11/2025, 5:39 PMpython
foo = struct_pb2.Value(string_value="foo")
metadata.update({ "some": foo })
yetitwo
02/11/2025, 5:40 PMAndrii
02/11/2025, 5:42 PMyetitwo
02/11/2025, 5:42 PMyetitwo
02/11/2025, 5:42 PMAndrii
02/11/2025, 5:44 PMyetitwo
02/11/2025, 5:48 PMStringValue
exported by the version of struct_pb2 that you have?Andrii
02/11/2025, 5:50 PMAndrii
02/11/2025, 5:50 PMyetitwo
02/11/2025, 5:50 PMValue
explicitlyyetitwo
02/11/2025, 5:50 PMStruct
using the methods that it providesAndrii
02/11/2025, 5:52 PMmetadata = struct_pb2.Struct()
foo_value = struct_pb2.Value(string_value="foo")
metadata.fields["some"] = foo_value
Andrii
02/11/2025, 5:52 PMyetitwo
02/11/2025, 5:55 PMyetitwo
02/11/2025, 5:55 PMyetitwo
02/11/2025, 5:55 PMAndrii
02/11/2025, 5:56 PMyetitwo
02/11/2025, 6:17 PMAndrii
02/11/2025, 6:20 PMyetitwo
02/11/2025, 6:39 PM