Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions retail/interactive-tutorials/search/search-simple-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// [START retail_search_simple_query]
'use strict';

async function main() {
Expand Down Expand Up @@ -76,3 +77,5 @@ process.on('unhandledRejection', err => {
});

main();

// [END retail_search_simple_query]
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

'use strict';

// [START retail_search_for_products_with_pagination]
async function main() {
// Imports the Google Cloud client library.
const {SearchServiceClient} = require('@google-cloud/retail');
Expand Down Expand Up @@ -83,6 +84,8 @@ async function main() {
//PASTE CALL WITH NEXT PAGE TOKEN HERE:
}

// [END retail_search_for_products_with_pagination]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The [END retail_search_for_products_with_pagination] tag should be placed after the main(); call (line 94) to include the entire runnable sample code within the region tag.


process.on('unhandledRejection', err => {
console.error(err.message);
process.exitCode = 1;
Expand Down
Loading