1 |
|
-module(mongoose_graphql_admin_mutation). |
2 |
|
-behaviour(mongoose_graphql). |
3 |
|
|
4 |
|
-export([execute/4]). |
5 |
|
|
6 |
|
-ignore_xref([execute/4]). |
7 |
|
|
8 |
|
-include("../mongoose_graphql_types.hrl"). |
9 |
|
|
10 |
|
execute(_Ctx, _Obj, <<"domains">>, _Args) -> |
11 |
12 |
{ok, admin}; |
12 |
|
execute(_Ctx, _Obj, <<"account">>, _Args) -> |
13 |
12 |
{ok, account}; |
14 |
|
execute(_Ctx, _Obj, <<"muc_light">>, _Args) -> |
15 |
25 |
{ok, muc_light}; |
16 |
|
execute(_Ctx, _Obj, <<"session">>, _Args) -> |
17 |
8 |
{ok, session}; |
18 |
|
execute(_Ctx, _Obj, <<"stanza">>, _Args) -> |
19 |
14 |
{ok, #{}}. |