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, <<"last">>, _Args) -> |
11 |
4 |
{ok, last}; |
12 |
|
execute(_Ctx, _Obj, <<"muc">>, _Args) -> |
13 |
48 |
{ok, muc}; |
14 |
|
execute(_Ctx, _Obj, <<"httpUpload">>, _Args) -> |
15 |
5 |
{ok, httpUpload}; |
16 |
|
execute(_Ctx, _Obj, <<"muc_light">>, _Args) -> |
17 |
27 |
{ok, muc_light}; |
18 |
|
execute(_Ctx, _Obj, <<"private">>, _Args) -> |
19 |
2 |
{ok, private}; |
20 |
|
execute(_Ctx, _Obj, <<"roster">>, _Args) -> |
21 |
18 |
{ok, roster}; |
22 |
|
execute(_Ctx, _Obj, <<"stanza">>, _Args) -> |
23 |
8 |
{ok, stanza}; |
24 |
|
execute(_Ctx, _Obj, <<"vcard">>, _Args) -> |
25 |
1 |
{ok, vcard}. |