chore: Build graphQL query type dynamically

This commit is contained in:
Faruk AYDIN
2021-10-09 12:39:18 +02:00
committed by Ali BARIN
parent c9079db77a
commit 4dbbf37844
3 changed files with 19 additions and 12 deletions

View File

@@ -1,11 +1,7 @@
import App from '../../models/app';
type Params = {
name: string
}
const getApps = (params: Params) => {
return App.findAll(params.name)
const getApps = (name: string) => {
return App.findAll(name)
}
export default getApps;