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