Skip to content

Commit 32dbe89

Browse files
authored
Update watch metadata docs (#423)
1 parent f18bbfb commit 32dbe89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pages/spicedb/concepts/watch.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ client = Client(
144144
"localhost:50051",
145145
bearer_token_credentials("your-token-here"),
146146
)
147+
metadata = Struct()
148+
metadata.update({"request_id": "12345"})
147149
client.WriteRelationships(WriteRelationshipsRequest(
148150
updates=[
149151
RelationshipUpdate(
@@ -160,7 +162,7 @@ client.WriteRelationships(WriteRelationshipsRequest(
160162
),
161163
),
162164
],
163-
optional_transaction_metadata=Struct({"request_id": "12345"}),
165+
optional_transaction_metadata=metadata,
164166
})
165167

166168
...

0 commit comments

Comments
 (0)