chore(docs): update Swift Realtime filter to use new filter type (#33748)

This commit is contained in:
Guilherme Souza authored and GitHub committed 2025-02-21 19:22:41 -03:00
1 parent 7eeab4ebb3
commit da7facdfc1
2 files changed
+10 -10

No files matched your search

@@ -832,7 +832,7 @@ let changes = await myChannel.postgresChange(
InsertAction.self,
schema: "public",
table: "todos",
filter: "id=eq.1"
filter: .eq("id", value: 1)
)
await myChannel.subscribe()
@@ -941,7 +941,7 @@ let changes = await myChannel.postgresChange(
UpdateAction.self,
schema: "public",
table: "messages",
filter: "body=eq.hey"
filter: .eq("body", value: "hey")
)
await myChannel.subscribe()
@@ -1048,7 +1048,7 @@ let changes = await myChannel.postgresChange(
UpdateAction.self,
schema: "public",
table: "messages",
filter: "body=neq.hey"
filter: .neq("body", value: "hey")
)
await myChannel.subscribe()
@@ -1156,7 +1156,7 @@ let changes = await myChannel.postgresChange(
InsertAction.self,
schema: "public",
table: "profiles",
filter: "age=lt.65"
filter: .lt("age", value: 65)
)
await myChannel.subscribe()
@@ -1263,7 +1263,7 @@ let changes = await myChannel.postgresChange(
InsertAction.self,
schema: "public",
table: "profiles",
filter: "age=lte.65"
filter: .lte("age", value: 65)
)
await myChannel.subscribe()
@@ -1370,7 +1370,7 @@ let changes = await myChannel.postgresChange(
InsertAction.self,
schema: "public",
table: "products",
filter: "quantity=gt.10"
filter: .gt("quantity", value: 10)
)
await myChannel.subscribe()
@@ -1477,7 +1477,7 @@ let changes = await myChannel.postgresChange(
InsertAction.self,
schema: "public",
table: "products",
filter: "quantity=gte.10"
filter: .gte("quantity", value: 10)
)
await myChannel.subscribe()
@@ -1584,7 +1584,7 @@ let changes = await myChannel.postgresChange(
InsertAction.self,
schema: "public",
table: "products",
filter: "name=in.(red, blue, yellow)"
filter: .in("name", values: ["red", "blue", "yellow"])
)
await myChannel.subscribe()
+2 -2
View File
@@ -4025,7 +4025,7 @@ functions:
DeleteAction.self,
schema: "public",
table: "users",
filter: "id=eq.1"
filter: .eq(id, value: 1)
)
await channel.subscribe()
@@ -4044,7 +4044,7 @@ functions:
DeleteAction.self,
schema: "public",
table: "users",
filter: "id=eq.1"
filter: .eq(id, value: 1)
) { deletion in
print("Deleted: \(deletion.oldRecord)")
}