Skip to content

Commit 3a3b794

Browse files
algolia-botmillotp
andcommitted
guides: support verbatim variables (#3871) (generated) [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 233cf76 commit 3a3b794

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

guides/javascript/src/saveObjectsMovies.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const client = searchClient('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');
55
// Fetch and index objects in Algolia
66
const processRecords = async () => {
77
const datasetRequest = await fetch('https://dashboard.algolia.com/sample_datasets/movie.json');
8-
const objects = await datasetRequest.json();
9-
return await client.saveObjects({ indexName: 'movies_index', objects: [{ $var: 'objects' }] });
8+
const movies = await datasetRequest.json();
9+
return await client.saveObjects({ indexName: 'movies_index', objects: movies });
1010
};
1111

1212
processRecords()

tests/output/java/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ test() {
3333
events "passed", "skipped", "failed"
3434
showStandardStreams = true
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)