Skip to content

Custom GraphQLScalarType instance: parseLiteral is called twice #1713

Closed
@royalcala

Description

@royalcala

The parseLiteral method is called twice

const express_graphql = require('express-graphql')
var { buildSchema } = require('graphql')

var OddType = new GraphQLScalarType({
  name: 'Odd',
  parseLiteral(ast) {
   console. log('this print twice before continue with the resolver')
    return null
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions