From 4f0d508a3e13cde01e890961cb377cc7dbd731b7 Mon Sep 17 00:00:00 2001 From: Rebecca Le <543859+sevenseacat@users.noreply.github.com> Date: Tue, 16 Jul 2024 18:03:36 +0800 Subject: [PATCH] chore: Wording tweaks to installer content (#193) --- lib/mix/tasks/ash_graphql.install.ex | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/mix/tasks/ash_graphql.install.ex b/lib/mix/tasks/ash_graphql.install.ex index a2d21bf..ddd5051 100644 --- a/lib/mix/tasks/ash_graphql.install.ex +++ b/lib/mix/tasks/ash_graphql.install.ex @@ -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 ->