absinthe-graphql / absinthe_ecto

DEPRECATED: Use dataloader
MIT License
130 stars 36 forks source link

warning: this check/guard will always yield the same result #8

Closed ndarilek closed 7 years ago

ndarilek commented 7 years ago

Getting this error with the following:

    field :orders, list_of(:order), resolve: assoc(:orders)

Am I doing something wrong here? Fairly new to Elixir but think that's a fairly accurate copy from the docs. :)

Thanks.

MartinElvar commented 7 years ago

@ndarilek I believe it would be a great help for the maintainers, if you provided the error as well. :)

ndarilek commented 7 years ago

That is the warning, there is no error. Code lifted straight out of the docs:

 field :orders, list_of(:order), resolve: assoc(:orders)

Am I misunderstanding what you're saying?

benwilson512 commented 7 years ago

Fixed in master.