1 |
|
-module(mongoose_graphql_admin_query). |
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 |
:-( |
{ok, account}; |
12 |
|
execute(_Ctx, _Obj, <<"checkAuth">>, _Args) -> |
13 |
:-( |
{ok, admin}; |
14 |
|
execute(_Ctx, _Obj, <<"domain">>, _Args) -> |
15 |
:-( |
{ok, admin}; |
16 |
|
execute(_Ctx, _Obj, <<"gdpr">>, _Args) -> |
17 |
61 |
{ok, gdpr}; |
18 |
|
execute(_Ctx, _Obj, <<"last">>, _Args) -> |
19 |
:-( |
{ok, last}; |
20 |
|
execute(_Ctx, _Obj, <<"metric">>, _Args) -> |
21 |
:-( |
{ok, metric}; |
22 |
|
execute(_Ctx, _Obj, <<"mnesia">>, _Args) -> |
23 |
:-( |
{ok, mnesia}; |
24 |
|
execute(_Ctx, _Obj, <<"cets">>, _Args) -> |
25 |
:-( |
{ok, cets}; |
26 |
|
execute(_Ctx, _Obj, <<"muc">>, _Args) -> |
27 |
:-( |
{ok, muc}; |
28 |
|
execute(_Ctx, _Obj, <<"muc_light">>, _Args) -> |
29 |
:-( |
{ok, muc_light}; |
30 |
|
execute(_Ctx, _Obj, <<"private">>, _Args) -> |
31 |
:-( |
{ok, private}; |
32 |
|
execute(_Ctx, _Obj, <<"roster">>, _Args) -> |
33 |
:-( |
{ok, roster}; |
34 |
|
execute(_Ctx, _Obj, <<"server">>, _Args) -> |
35 |
:-( |
{ok, server}; |
36 |
|
execute(_Ctx, _Obj, <<"session">>, _Args) -> |
37 |
:-( |
{ok, session}; |
38 |
|
execute(_Ctx, _Obj, <<"stanza">>, _Args) -> |
39 |
:-( |
{ok, #{}}; |
40 |
|
execute(_Ctx, _Obj, <<"stat">>, _Args) -> |
41 |
:-( |
{ok, stats}; |
42 |
|
execute(_Ctx, _Obj, <<"vcard">>, _Args) -> |
43 |
:-( |
{ok, vcard}. |