import { Observable } from 'rxjs' ; import { Metadata } from 'grpc' ; import { IId , IQuery , ICount } from '../commons/commons.interface' ; import { CommentsConnection , Comment } from '../graphql/typings' ; import { CommentDto } from './comment.dto' ; interface IUpdateCommentInput { id : string ; data : CommentDto ; } export interface ICommentsService { find ( query , metadata ? ) : Observable < CommentsConnection > ; findById ( id , metadata ? ) : Observable < Comment > ; findOne ( query , metadata ? ) : Observable < Comment > ; count ( query , metadata ? ) : Observable < ICount > ; create ( input , metadata ? ) : Observable < Comment > ; update ( input , metadata ? ) : Observable < Comment > ; destroy ( query , metadata ? ) : Observable < ICount > ; }