let client = Based(config: BasedConfig(env: "env", project: "projectName", org: "organization"))
let res: Root = try await client.get(query: BasedQuery.query(.field("children", .field("name", true), .field("id", true),.list(true))))
let res = try await client.delete(id: "root")
let res = try await client.set(query: BasedQuery.query(.field("type", "thing"), .field("name", name)))
let publisher: Based.DataPublisher<SomeType> = client.publisher(name: "some-func-name", payload: [:])
cancellable = publisher.receive(on: DispatchQueue.main).sink(receiveCompletion: { completion in
print("Received completion: \(completion)")
}, receiveValue: { value in
print(values)
})
link |
Stars: 0 |
Last commit: 1 week ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics