absinthe-graphql/absinthe_relay

Absinthe.Relay.Connection.Notation.connection/2 not defined

Closed this issue · 0 comments

On v1.4, with the following code inside my schema query, pulled directly from the docs:

connection(:favorite_pets, node_type: :pet)

I get this error:

** (FunctionClauseError) no function clause matching in Absinthe.Relay.Connection.Notation.connection/2    
    expanding macro: Absinthe.Relay.Connection.Notation.connection/2

From a quick glance at the relevant code, it appears that this macro isn't actually defined for /2 without also including a block. This is an issue on master and v1.4.