Class GraphQLBsonInt32Coercing

java.lang.Object
org.restheart.graphql.scalars.bsonCoercing.GraphQLBsonInt32Coercing
All Implemented Interfaces:
graphql.schema.Coercing<org.bson.BsonInt32,​org.bson.BsonInt32>

public class GraphQLBsonInt32Coercing extends Object implements graphql.schema.Coercing<org.bson.BsonInt32,​org.bson.BsonInt32>
  • Constructor Details

    • GraphQLBsonInt32Coercing

      public GraphQLBsonInt32Coercing()
  • Method Details

    • serialize

      public org.bson.BsonInt32 serialize(Object dataFetcherResult) throws graphql.schema.CoercingSerializeException
      Specified by:
      serialize in interface graphql.schema.Coercing<org.bson.BsonInt32,​org.bson.BsonInt32>
      Throws:
      graphql.schema.CoercingSerializeException
    • parseValue

      public org.bson.BsonInt32 parseValue(Object input)
      Specified by:
      parseValue in interface graphql.schema.Coercing<org.bson.BsonInt32,​org.bson.BsonInt32>
    • parseLiteral

      public org.bson.BsonInt32 parseLiteral(Object AST)
      Specified by:
      parseLiteral in interface graphql.schema.Coercing<org.bson.BsonInt32,​org.bson.BsonInt32>