Skip to content

Commit

Permalink
chore: allow for resources that are query only
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaAK committed Feb 26, 2024
1 parent 91d09cb commit 403158c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
2 changes: 1 addition & 1 deletion lib/app_gen/absinthe_schema_builder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ defmodule AppGen.AbsintheSchemaBuilder do
)
|> Enum.map(fn {middleware_module, middleware_types} ->
%AbsintheGenerator.Schema.Middleware{
module: middleware_module,
module: inspect(middleware_module),
types: middleware_types
}
end)
Expand Down
22 changes: 1 addition & 21 deletions lib/app_gen/input_arguments/required.ex
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,7 @@ defmodule AppGen.InputArguments.Required do
crud_options
) do
case split_input_object(objects, ecto_schema) do
{[], _} ->
module_name = Utils.ecto_schema_module_underscore_name(ecto_schema)

raise to_string(
IO.ANSI.format(
[
"Somehow got nil when looking for ",
:bright,
"#{module_name}_input",
:reset,
:red,
" for ",
:bright,
"required ",
:reset,
:red,
"arg"
],
true
)
)
{[], other_objects} -> other_objects

{[input_type | _], other_objects} ->
new_input_types =
Expand Down

0 comments on commit 403158c

Please sign in to comment.