Skip to content

Commit

Permalink
update migrate guide
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmyxd committed Dec 19, 2024
1 parent f26905d commit e900444
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,11 @@ m
objectId: '[email protected]',
});
```


#### Reading object properties is now simplified, enabling direct access.
```diff
const object = await directoryClient.object({objectType: 'user', objectId: "key"});
- const owner = object?.properties?.fields?.owner?.kind?.value as string
+ const { owner } = object.result.properties
```

0 comments on commit e900444

Please sign in to comment.