1 |
|
-module(mongoose_graphql_user_query). |
2 |
|
-behaviour(mongoose_graphql). |
3 |
|
|
4 |
|
-export([execute/4]). |
5 |
|
|
6 |
|
-ignore_xref([execute/4]). |
7 |
|
|
8 |
|
execute(_Ctx, _Obj, <<"checkAuth">>, _Args) -> |
9 |
2 |
{ok, user}; |
10 |
|
execute(_Ctx, _Obj, <<"account">>, _Args) -> |
11 |
:-( |
{ok, account}; |
12 |
|
execute(_Ctx, _Obj, <<"last">>, _Args) -> |
13 |
3 |
{ok, last}; |
14 |
|
execute(_Ctx, _Obj, <<"muc">>, _Args) -> |
15 |
22 |
{ok, muc}; |
16 |
|
execute(_Ctx, _Obj, <<"muc_light">>, _Args) -> |
17 |
20 |
{ok, muc_light}; |
18 |
|
execute(_Ctx, _Obj, <<"private">>, _Args) -> |
19 |
3 |
{ok, private}; |
20 |
|
execute(_Ctx, _Obj, <<"roster">>, _Args) -> |
21 |
3 |
{ok, roster}; |
22 |
|
execute(_Ctx, _Obj, <<"session">>, _Args) -> |
23 |
3 |
{ok, session}; |
24 |
|
execute(_Ctx, _Obj, <<"stanza">>, _Args) -> |
25 |
1 |
{ok, stanza}; |
26 |
|
execute(_Ctx, _Obj, <<"vcard">>, _Args) -> |
27 |
9 |
{ok, vcard}. |