mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 16:03:25 +00:00
b54dae7e15
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
17 lines
361 B
Elixir
17 lines
361 B
Elixir
defmodule MobilizonWeb.AbsintheHelpers do
|
|
def query_skeleton(query, query_name) do
|
|
%{
|
|
"operationName" => "#{query_name}",
|
|
"query" => "query #{query_name} #{query}",
|
|
"variables" => "{}"
|
|
}
|
|
end
|
|
|
|
def mutation_skeleton(query) do
|
|
%{
|
|
"operationName" => "",
|
|
"query" => "#{query}",
|
|
"variables" => ""
|
|
}
|
|
end
|
|
end
|