Skip to content

"Expecting one more argument to ‘Boolean’" using Boolean in client code #583

Closed
@th3coop

Description

@th3coop

I get the same error as #277 but that's closed fixed so reporting again.

Morpheus version: 0.17.0

Error:

• Expecting one more argument to ‘Boolean’
  Expected a type, but ‘Boolean’ has kind ‘Bool -> ScalarValue’
• In the first argument of ‘Maybe’, namely ‘Boolean’
  In the type ‘(Maybe Boolean)’
  In the definition of data constructor ‘StarWarsFilmsArgs’

Schema, a modified Starwars.graphql (altered name to be able to attach here):
starwars.txt

I changes line 3322 to skip: Boolean

Client code StarWars.hs:
StarWars.txt

To even get it to that point I had to add the following lines to the file:
{-# LANGUAGE DataKinds #-} at line 8
and
import Data.Morpheus.Types (ScalarValue (..)) at line 23

Thanks in advance for any help!

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