@@ -44,12 +44,12 @@ async function basicCrudExample() {
4444 } ,
4545 } ) ;
4646
47- console . log ( '✅ Created person:' , person . properties . name ) ;
47+ console . log ( '✅ Created person:' , person . properties [ ' name' ] ) ;
4848
4949 // Read the person (Read)
5050 const retrievedPerson = await client . getObjectById ( 'person-1' , 'Person' ) ;
5151 if ( retrievedPerson ) {
52- console . log ( '✅ Retrieved person:' , retrievedPerson . properties . name ) ;
52+ console . log ( '✅ Retrieved person:' , retrievedPerson . properties [ ' name' ] ) ;
5353 }
5454
5555 // Update the person (Update)
@@ -65,7 +65,7 @@ async function basicCrudExample() {
6565 } ,
6666 } ) ;
6767
68- console . log ( '✅ Updated person age to:' , updatedPerson . properties . age ) ;
68+ console . log ( '✅ Updated person age to:' , updatedPerson . properties [ ' age' ] ) ;
6969
7070 // Delete the person (Delete)
7171 const deleted = await client . deleteObject ( 'person-1' , 'Person' ) ;
@@ -219,7 +219,7 @@ async function basicRelationsExample() {
219219 } ,
220220 } ) ;
221221
222- console . log ( '✅ Created relation:' , relation . properties . role ) ;
222+ console . log ( '✅ Created relation:' , relation . properties ?. [ ' role' ] ?? 'Unknown role' ) ;
223223
224224 // Query outgoing relations from person
225225 const outgoingRelations = await client . getOutgoingRelations ( person . id , 'Person' , 'WORKS_ON' ) ;
0 commit comments