Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { Injectable } from '@nestjs/common';
import { JsonPlaceholderService } from 'src/services/jsonPlacehodlerService';
import { User } from './user.schema';
export class UserSerivce {
private readonly jsonPlaceholderService: JsonPlaceholderService,
) {}
helloWorld(): string {
return 'hello world';
async getUsers(): Promise<User[]> {
const response = await this.jsonPlaceholderService.getUsers();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment