ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

schema.js (573B)


      1 /**
      2  * React Starter Kit (https://www.reactstarterkit.com/)
      3  *
      4  * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
      5  *
      6  * This source code is licensed under the MIT license found in the
      7  * LICENSE.txt file in the root directory of this source tree.
      8  */
      9 
     10 import {
     11   GraphQLSchema as Schema,
     12   GraphQLObjectType as ObjectType,
     13 } from 'graphql';
     14 
     15 import me from './queries/me';
     16 import news from './queries/news';
     17 
     18 const schema = new Schema({
     19   query: new ObjectType({
     20     name: 'Query',
     21     fields: {
     22       me,
     23       news,
     24     },
     25   }),
     26 });
     27 
     28 export default schema;