1 |
|
-module(mongoose_graphql_admin_mutation). |
2 |
|
-behaviour(mongoose_graphql). |
3 |
|
|
4 |
|
-export([execute/4]). |
5 |
|
|
6 |
|
-ignore_xref([execute/4]). |
7 |
|
|
8 |
|
execute(_Ctx, _Obj, <<"account">>, _Args) -> |
9 |
66 |
{ok, account}; |
10 |
|
execute(_Ctx, _Obj, <<"domain">>, _Args) -> |
11 |
45 |
{ok, admin}; |
12 |
|
execute(_Ctx, _Obj, <<"httpUpload">>, _Args) -> |
13 |
23 |
{ok, httpUpload}; |
14 |
|
execute(_Ctx, _Obj, <<"inbox">>, _Args) -> |
15 |
27 |
{ok, inbox}; |
16 |
|
execute(_Ctx, _Obj, <<"last">>, _Args) -> |
17 |
63 |
{ok, last}; |
18 |
|
execute(_Ctx, _Obj, <<"muc">>, _Args) -> |
19 |
122 |
{ok, muc}; |
20 |
|
execute(_Ctx, _Obj, <<"muc_light">>, _Args) -> |
21 |
118 |
{ok, muc_light}; |
22 |
|
execute(_Ctx, _Obj, <<"offline">>, _Args) -> |
23 |
34 |
{ok, offline}; |
24 |
|
execute(_Ctx, _Obj, <<"private">>, _Args) -> |
25 |
7 |
{ok, private}; |
26 |
|
execute(_Ctx, _Obj, <<"roster">>, _Args) -> |
27 |
81 |
{ok, roster}; |
28 |
|
execute(_Ctx, _Obj, <<"session">>, _Args) -> |
29 |
31 |
{ok, session}; |
30 |
|
execute(_Ctx, _Obj, <<"stanza">>, _Args) -> |
31 |
45 |
{ok, stanza}; |
32 |
|
execute(_Ctx, _Obj, <<"vcard">>, _Args) -> |
33 |
12 |
{ok, vcard}; |
34 |
|
execute(_Ctx, _Obj, <<"token">>, _Args) -> |
35 |
29 |
{ok, token}; |
36 |
|
execute(_Ctx, _Obj, <<"server">>, _Args) -> |
37 |
22 |
{ok, server}; |
38 |
|
execute(_Ctx, _Obj, <<"mnesia">>, _Args) -> |
39 |
8 |
{ok, mnesia}. |