1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00

changes made swift GETTING_STARTED.md

This commit is contained in:
Pratik Gupta 2023-10-17 18:49:51 +05:30 committed by GitHub
parent 5138d4c0f9
commit 569d54bee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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