17
test/support/abinthe_helpers.ex
Normal file
17
test/support/abinthe_helpers.ex
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user