{"size": 575, "ext": "js", "max_stars_repo_path": "sample/user/profile.js", "max_stars_repo_name": "happygts/secure-graphql-object-type", "max_stars_repo_stars_event_min_datetime": "2019-01-20T20:56:41.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-30T09:21:18.000Z", "max_issues_repo_path": "sample/user/profile.js", "max_issues_repo_name": "happygts/secure-graphql-object-type", "max_issues_repo_issues_event_min_datetime": "2021-05-09T20:13:56.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T16:18:08.000Z", "max_forks_repo_path": "sample/user/profile.js", "max_forks_repo_name": "happygts/secure-graphql-object-type", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 17.4242424242, "max_line_length": 53, "alphanum_fraction": 0.5982608696}
import {
  GraphQLString,
  GraphQLInt,
  GraphQLBoolean
} from 'graphql'

import {
  SecureGraphQlObjectType
} from 'secure-graphql-object-type'

const UserProfileType = new SecureGraphQlObjectType({
  name: 'UserProfile',
  fieldsToAvoid: ['$hasAccess', '$parent'],
  fields () {
    return {
      firstname: {
        type: GraphQLString
      },
      lastname: {
        type: GraphQLString
      },
      age: {
        type: GraphQLInt,
        secure: true
      },
      drinkMilk: {
        type: GraphQLBoolean
      }
    }
  }
})

export default UserProfileType