1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00

Update swift GETTING_STARTED.md

This commit is contained in:
Pratik Gupta 2023-10-17 01:47:43 +05:30 committed by GitHub
parent acc408f5ab
commit 303212fba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,9 +25,7 @@ let users = Users(client)
do { do {
let user = try await users.create( let user = try await users.create(
userId: ID.unique(), userId = ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"
email: "email@example.com",
password: "password"
) )
print(String(describing: user.toMap())) print(String(describing: user.toMap()))
} catch { } catch {
@ -51,9 +49,7 @@ func main() {
do { do {
let user = try await users.create( let user = try await users.create(
userId: ID.unique(), userId = ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"
email: "email@example.com",
password: "password"
) )
print(String(describing: user.toMap())) print(String(describing: user.toMap()))
} catch { } catch {