mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-19 21:03:09 +12:00
chore: Wording tweaks to installer content (#193)
This commit is contained in:
parent
88735868cc
commit
4f0d508a3e
1 changed files with 12 additions and 9 deletions
|
@ -34,10 +34,10 @@ defmodule Mix.Tasks.AshGraphql.Install do
|
|||
{igniter, nil} ->
|
||||
igniter
|
||||
|> Igniter.add_warning("""
|
||||
No Phoenix router found, skipping phoenix installation.
|
||||
No Phoenix router found, skipping Phoenix installation.
|
||||
|
||||
See the getting started guide for instructions on installing AshGraphql with `plug`.
|
||||
If you have yet to set up phoenix, you'll have to do that manually and then rerun this installer.
|
||||
See the Getting Started guide for instructions on installing AshGraphql with `plug`.
|
||||
If you have yet to set up Phoenix, you'll have to do that manually and then rerun this installer.
|
||||
""")
|
||||
|
||||
{igniter, router} ->
|
||||
|
@ -113,14 +113,17 @@ defmodule Mix.Tasks.AshGraphql.Install do
|
|||
|
||||
placeholder_query =
|
||||
unless any_queries? do
|
||||
~S'''
|
||||
@desc """
|
||||
Hello! This is a sample query to verify that AshGraphql has been set up correctly.
|
||||
Remove me once you have a query of your own!
|
||||
"""
|
||||
@desc "Remove me once you have a query of your own!"
|
||||
field :remove_me, :string do
|
||||
field :say_hello, :string do
|
||||
resolve fn _, _, _ ->
|
||||
{:ok, "Remove me!"}
|
||||
{:ok, "Hello from AshGraphql!"}
|
||||
end
|
||||
end
|
||||
"""
|
||||
'''
|
||||
end
|
||||
|
||||
igniter
|
||||
|
@ -131,12 +134,12 @@ defmodule Mix.Tasks.AshGraphql.Install do
|
|||
use AshGraphql, domains: #{inspect(domains)}
|
||||
|
||||
query do
|
||||
# Custom absinthe queries can be placed here
|
||||
# Custom Absinthe queries can be placed here
|
||||
#{placeholder_query}
|
||||
end
|
||||
|
||||
mutation do
|
||||
# Custom absinthe mutations can be placed here
|
||||
# Custom Absinthe mutations can be placed here
|
||||
end
|
||||
""",
|
||||
fn zipper ->
|
||||
|
|
Loading…
Reference in a new issue