nittany_market
nittany_market copied to clipboard
nmcli run error
Thanks for this Web development with OCaml tutorial.
While running the command ./nmcli run
, I get the following error:
File "lib/graphql/schema.ml", lines 5-19, characters 26-10:
5 | ..........................(fun _ ->
6 | [
7 | field "zipcode"
8 | ~args:Arg.[]
9 | ~typ:(non_null string)
...
16 | ~args:Arg.[]
17 | ~typ:(non_null int)
18 | ~resolve:(fun _ (p : Models.Address.Address.t) -> p.street_num);
19 | ]).
Error: This expression should not be a function, the expected type is
('a, 'b) Graphql_lwt.Schema.field list
Any idea about it ?
Here is the solution: https://github.com/andreas/ocaml-graphql-server/tree/master#defining-a-schema