Class GraphQLBsonDecimal128Coercing

java.lang.Object
org.restheart.graphql.scalars.bsonCoercing.GraphQLBsonDecimal128Coercing
All Implemented Interfaces:
graphql.schema.Coercing<org.bson.BsonDecimal128,​org.bson.types.Decimal128>

public class GraphQLBsonDecimal128Coercing extends Object implements graphql.schema.Coercing<org.bson.BsonDecimal128,​org.bson.types.Decimal128>
  • Constructor Details

    • GraphQLBsonDecimal128Coercing

      public GraphQLBsonDecimal128Coercing()
  • Method Details

    • serialize

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

      public org.bson.BsonDecimal128 parseValue(Object input) throws graphql.schema.CoercingParseValueException
      Specified by:
      parseValue in interface graphql.schema.Coercing<org.bson.BsonDecimal128,​org.bson.types.Decimal128>
      Throws:
      graphql.schema.CoercingParseValueException
    • parseLiteral

      public org.bson.BsonDecimal128 parseLiteral(Object input) throws graphql.schema.CoercingParseLiteralException
      Specified by:
      parseLiteral in interface graphql.schema.Coercing<org.bson.BsonDecimal128,​org.bson.types.Decimal128>
      Throws:
      graphql.schema.CoercingParseLiteralException