text: const {
    GraphQLObjectType,
    GraphQLNonNull,
    GraphQLString
  } = require('graphql');
  
  module.exports = new GraphQLObjectType({
    name: 'User',
    description: 'A user',
    fields: () => {
      const db = require('../');
      return {
        id: {
          type: new GraphQLNonNull(GraphQLString),
          description: 'The id of the user'
        },
        name: {
          type: new GraphQLNonNull(GraphQLString),
          description: 'The name of the user'
        },
        avatar: {
          type: GraphQLString,
          description: 'Avatar image URL'
        },
        ...require('../Wallet/queries')(db),
        ...require('../Transaction/queries')(db),
        ...require('../Coin/queries')(db),
        ...require('../Option/queries')(db)
      };
    }
  });
  