<commit_before>// citation http://dev.apollodata.com/core/meteor.html#createApolloServer

export default `
  # Date is handeled in Resolvers.js
  scalar Date
  # Create User and Click models that reflect our DB schema
  type User {
    UserID: Int
    UserName: String
    Email: String
    ClickCount: Int
    Clicks: [Click] # These are all of the Clicks by a user
  }

  # Define a TimeClicked Custom Scalar type
  type Click {
    ClickID: Int
    TimeClicked: Date
    user: User
  }

  # This is the format for the queries in resolvers.js
  type Query {
    users(UserName: String, Email: String): [User]
    clicks(UserID: Int): [Click]
  }

  # Mutations to increase the click count of a user when a Click is added
  # @TODO mutation for if a user adds an email after account creation
  type Mutation {
    incrementClick (
      ClickID: Int,
      UserID: Int,
      TimeClicked: Date
    ): Click
  }

  schema {
    query: Query
    mutation: Mutation
  }
`;<commit_msg>Missed file in last PR<commit_after>// citation http://dev.apollodata.com/core/meteor.html#createApolloServer

export default `
  # Date is handeled in Resolvers.js
  scalar Date
  # Create User and Click models that reflect our DB schema
  type User {
    UserID     : Int
    UserName   : String
    Email      : String
    ClickCount : Int
    Clicks     : [Click] # These are all of the Clicks by a user
  }

  # Define a TimeClicked Custom Scalar type
  type Click {
    TimeClicked : Date
    user        : User
  }

  # This is the format for the queries in resolvers.js
  type Query {
    users(UserName: String, Email: String) : [User]
    clicks(UserID: Int)                    : [Click]
  }

  type Mutation {
    createUser (
      UserName : String,
      Email    : String
    ): User

    updateEmail (
      UserName : String,
      Email    : String
    ): User

    # Mutations to increase the click count of a user and
    # adds a click to the Click table
    incrementClick (
      UserID      : Int,
      TimeClicked : Date
    ): Click
  }

  schema {
    query    : Query
    mutation : Mutation
  }
`;
{'fraction_non_alphanumeric': 0.07112375533428165, 'fraction_numerical': 0.0, 'mean_word_length': 2.3072100313479624, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2328574', 'n_tokens_mistral': 666, 'n_tokens_neox': 646, 'n_words': 237}