Skip to content

Instantly share code, notes, and snippets.

@kop7
Created August 12, 2020 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kop7/fcf53b287e28d2c37c4fa9340fb741ef to your computer and use it in GitHub Desktop.
Save kop7/fcf53b287e28d2c37c4fa9340fb741ef to your computer and use it in GitHub Desktop.
Movie Service
import { Injectable } from '@nestjs/common';
import { SearchService } from '../search/search.service';
@Injectable()
export class MovieService {
constructor(readonly esService: SearchService) {}
async findMovies(search: string = '') {
return await this.esService.search(search);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment