Class GraphQLBsonArrayCoercing

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

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

    • GraphQLBsonArrayCoercing

      public GraphQLBsonArrayCoercing()
  • Method Details

    • serialize

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

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

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