small medium large xlarge

Generic-user-small
12 Feb 2018, 13:09
Michiel Schukking (4 posts)

In Ch. 4 - Understanding abstract types - I have been adjusting the schema.ex, menu_types.ex and menu.ex from that sub-chapter. Basically ending with copy-pasting.

It’s currently not working.

At the moment of starting the server or when making a query in GraphiQL I get:

function PlateSlate.Menu.search/1 is undefined or private
  lib/plate_slate_web/resolvers/menu.ex:9

I don’t know how to solve this.

Generic-user-small
14 Feb 2018, 21:17
Alkis Tsamis (1 post)

In accompanying code for this book, in04-chp.flexibility/2-unions/lib/plate_slate/menu/menu.ex are defined two functions search/1 and search_ecto/2

Copy those in your lib/plate_slate/menu/menu.ex

You must be logged in to comment