feat: Implement getApp graphQL query
This commit is contained in:
11
packages/backend/src/graphql/queries/get-app.ts
Normal file
11
packages/backend/src/graphql/queries/get-app.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import App from '../../models/app';
|
||||
|
||||
const getApp = (name: string) => {
|
||||
if(!name) {
|
||||
throw new Error('No name provided.')
|
||||
}
|
||||
|
||||
return App.findOneByName(name)
|
||||
}
|
||||
|
||||
export default getApp;
|
Reference in New Issue
Block a user