@@ -52,7 +52,7 @@ public void testCreateGetDelete() throws IOException {
5252 .uuid (id )
5353 .vectors (Vectors .of (VECTOR_INDEX , vector )));
5454
55- var object = artists .query .byId (id , query -> query
55+ var object = artists .query .fetchObjectById (id , query -> query
5656 .returnProperties ("name" )
5757 .returnMetadata (
5858 MetadataField .VECTOR ,
@@ -99,7 +99,7 @@ public void testBlobData() throws IOException {
9999 "breed" , "ragdoll" ,
100100 "img" , ragdollPng ));
101101
102- var got = cats .query .byId (ragdoll .metadata ().uuid (),
102+ var got = cats .query .fetchObjectById (ragdoll .metadata ().uuid (),
103103 cat -> cat .returnProperties ("img" ));
104104
105105 Assertions .assertThat (got ).get ()
@@ -145,7 +145,7 @@ public void testReferences_AddReplaceDelete() throws IOException {
145145 Reference .object (albie ));
146146
147147 // Assert
148- var johnWithFriends = persons .query .byId (john .metadata ().uuid (),
148+ var johnWithFriends = persons .query .fetchObjectById (john .metadata ().uuid (),
149149 query -> query .returnReferences (
150150 QueryReference .single ("hasFriend" ,
151151 friend -> friend .returnProperties ("name" ))));
@@ -165,7 +165,7 @@ public void testReferences_AddReplaceDelete() throws IOException {
165165 "hasFriend" ,
166166 Reference .object (barbara ));
167167
168- johnWithFriends = persons .query .byId (john .metadata ().uuid (),
168+ johnWithFriends = persons .query .fetchObjectById (john .metadata ().uuid (),
169169 query -> query .returnReferences (
170170 QueryReference .single ("hasFriend" ,
171171 friend -> friend .returnProperties ("name" ))));
@@ -185,7 +185,7 @@ public void testReferences_AddReplaceDelete() throws IOException {
185185 Reference .object (barbara ));
186186
187187 // Assert
188- johnWithFriends = persons .query .byId (john .metadata ().uuid (),
188+ johnWithFriends = persons .query .fetchObjectById (john .metadata ().uuid (),
189189 query -> query .returnReferences (
190190 QueryReference .single ("hasFriend" )));
191191
@@ -214,7 +214,7 @@ public void testReplace() throws IOException {
214214 replace -> replace .properties (Map .of ("year" , 1819 )));
215215
216216 // Assert
217- var replacedIvanhoe = books .query .byId (ivanhoe .metadata ().uuid ());
217+ var replacedIvanhoe = books .query .fetchObjectById (ivanhoe .metadata ().uuid ());
218218
219219 Assertions .assertThat (replacedIvanhoe ).get ()
220220 .as ("has ONLY year property" )
@@ -258,7 +258,7 @@ public void testUpdate() throws IOException {
258258 .vectors (Vectors .of (vector )));
259259
260260 // Assert
261- var updIvanhoe = books .query .byId (
261+ var updIvanhoe = books .query .fetchObjectById (
262262 ivanhoe .metadata ().uuid (),
263263 query -> query
264264 .includeVector ()
@@ -387,7 +387,7 @@ public void testReferenceAddMany() throws IOException {
387387 // Assert
388388 Assertions .assertThat (response .errors ()).isEmpty ();
389389
390- var goodburgAirports = cities .query .byId (goodburg .metadata ().uuid (),
390+ var goodburgAirports = cities .query .fetchObjectById (goodburg .metadata ().uuid (),
391391 city -> city .returnReferences (
392392 QueryReference .single ("hasAirports" )));
393393
@@ -469,7 +469,7 @@ public void testDataTypes() throws IOException {
469469
470470 // Act
471471 var object = types .data .insert (want );
472- var got = types .query .byId (object .uuid ()); // return all properties
472+ var got = types .query .fetchObjectById (object .uuid ()); // return all properties
473473
474474 // Assert
475475 Assertions .assertThat (got ).get ()
0 commit comments