All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spring.boxes.dollar.support.graphql.scalar.MapScalar Maven / Gradle / Ivy

package com.spring.boxes.dollar.support.graphql.scalar;

import java.util.Map;

import graphql.schema.Coercing;
import graphql.schema.CoercingParseLiteralException;
import graphql.schema.CoercingParseValueException;
import graphql.schema.CoercingSerializeException;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MapScalar implements Coercing {

    @Override
    public Map serialize(Object dataFetcherResult) throws CoercingSerializeException {
        return (Map) dataFetcherResult;
    }

    @Override
    public Map parseValue(Object input) throws CoercingParseValueException {
        return (Map) input;
    }

    @Override
    public Map parseLiteral(Object input) throws CoercingParseLiteralException {
        return (Map) input;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy