chore: Refactor graphQL queries structure

This commit is contained in:
Faruk AYDIN
2021-10-11 21:01:34 +02:00
committed by Ali BARIN
parent 1d65a7c0dd
commit 61e1488e11
6 changed files with 52 additions and 39 deletions

View File

@@ -0,0 +1,13 @@
import { GraphQLObjectType } from 'graphql';
import getApps from './queries/get-apps';
import getApp from './queries/get-app';
const rootQuery = new GraphQLObjectType({
name: 'Query',
fields: {
getApps: getApps,
getApp: getApp
}
});
export default rootQuery;