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, <<"account">>, _Args) -> |
11 |
10 |
{ok, account}; |
12 |
|
execute(_Ctx, _Obj, <<"domains">>, _Args) -> |
13 |
:-( |
{ok, admin}; |
14 |
|
execute(_Ctx, _Obj, <<"last">>, _Args) -> |
15 |
20 |
{ok, last}; |
16 |
|
execute(_Ctx, _Obj, <<"muc">>, _Args) -> |
17 |
34 |
{ok, muc}; |
18 |
|
execute(_Ctx, _Obj, <<"httpUpload">>, _Args) -> |
19 |
6 |
{ok, httpUpload}; |
20 |
|
execute(_Ctx, _Obj, <<"muc_light">>, _Args) -> |
21 |
25 |
{ok, muc_light}; |
22 |
|
execute(_Ctx, _Obj, <<"offline">>, _Args) -> |
23 |
8 |
{ok, offline}; |
24 |
|
execute(_Ctx, _Obj, <<"private">>, _Args) -> |
25 |
2 |
{ok, private}; |
26 |
|
execute(_Ctx, _Obj, <<"roster">>, _Args) -> |
27 |
30 |
{ok, roster}; |
28 |
|
execute(_Ctx, _Obj, <<"session">>, _Args) -> |
29 |
8 |
{ok, session}; |
30 |
|
execute(_Ctx, _Obj, <<"stanza">>, _Args) -> |
31 |
14 |
{ok, stanza}; |
32 |
|
execute(_Ctx, _Obj, <<"vcard">>, _Args) -> |
33 |
3 |
{ok, vcard}. |