title: How to query Java data types (long, short, BigDecimal) with GraphQl in a React/Node app
body: <p>I'm trying to get data values types that are proper to Java, like long, short, BigDecimal, double but GraphQl does not recognize them, it understand only String, Int, Float, Boolean, ID.
  How can make those queries work with these data values type??</p>
  <pre><code>const { gql } = require(&quot;apollo-server&quot;);
  
  const typeDefs = gql`
  
    type SignalValue {
      tickId: Int
      instId: Float
      tradingDay: String
      sigId: Int
      BigDecimal: Float
    }
  //Accepted data values type
  
  
    type TotalPnl {
      floatingPnl: short
      updateTimestamp: long
      totalFees: BigDecimal
      winRatio: double
    }`
  //Refused data values type
  </code></pre>
  <p>Here is the terminal error</p>
  <pre><code>/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/node_modules/graphql/validation/validate.js:108
      throw new Error(errors.map(function (error) {
      ^
  
  Error: Unknown type &quot;short&quot;.
      at assertValidSDL (/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/node_modules/graphql/validation/validate.js:108:11)
      at Object.buildASTSchema (/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/node_modules/graphql/utilities/buildASTSchema.js:71:34)
      at Object.buildSchemaFromTypeDefinitions (/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/node_modules/graphql-tools/dist/generate/buildSchemaFromTypeDefinitions.js:25:28)
      at Object.makeExecutableSchema (/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/node_modules/graphql-tools/dist/makeExecutableSchema.js:26:29)
      at ApolloServer.initSchema (/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/node_modules/apollo-server-core/dist/ApolloServer.js:272:49)
      at new ApolloServerBase (/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/node_modules/apollo-server-core/dist/ApolloServer.js:199:30)
      at new ApolloServer (/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/node_modules/apollo-server-express/dist/ApolloServer.js:59:9)
      at new ApolloServer (/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/node_modules/apollo-server/dist/index.js:24:9)
      at Object.&lt;anonymous&gt; (/Users/yohav/Desktop/monitorgui2/Apollo-NodeJS-Gateway/index.js:9:16)
  
  </code></pre>