Class GraphQLBsonDocumentCoercing
java.lang.Object
org.restheart.graphql.scalars.bsonCoercing.GraphQLBsonDocumentCoercing
- All Implemented Interfaces:
graphql.schema.Coercing<org.bson.BsonDocument,org.bson.BsonDocument>
public class GraphQLBsonDocumentCoercing
extends Object
implements graphql.schema.Coercing<org.bson.BsonDocument,org.bson.BsonDocument>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.BsonDocumentparseLiteral(Object AST)org.bson.BsonValueparseObjectField(Object input, Map<String,Object> variables)org.bson.BsonDocumentparseValue(Object input)org.bson.BsonDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface graphql.schema.Coercing
parseLiteral
-
Constructor Details
-
GraphQLBsonDocumentCoercing
public GraphQLBsonDocumentCoercing()
-
-
Method Details
-
serialize
public org.bson.BsonDocument serialize(Object dataFetcherResult) throws graphql.schema.CoercingSerializeException- Specified by:
serializein interfacegraphql.schema.Coercing<org.bson.BsonDocument,org.bson.BsonDocument>- Throws:
graphql.schema.CoercingSerializeException
-
parseValue
public org.bson.BsonDocument parseValue(Object input) throws graphql.schema.CoercingParseValueException- Specified by:
parseValuein interfacegraphql.schema.Coercing<org.bson.BsonDocument,org.bson.BsonDocument>- Throws:
graphql.schema.CoercingParseValueException
-
parseLiteral
public org.bson.BsonDocument parseLiteral(Object AST) throws graphql.schema.CoercingParseLiteralException- Specified by:
parseLiteralin interfacegraphql.schema.Coercing<org.bson.BsonDocument,org.bson.BsonDocument>- Throws:
graphql.schema.CoercingParseLiteralException
-
parseObjectField
public org.bson.BsonValue parseObjectField(Object input, Map<String,Object> variables) throws graphql.schema.CoercingParseLiteralException- Throws:
graphql.schema.CoercingParseLiteralException
-