Demo using Slices Network GraphQL Relay API to make a teal.fm client
1/**
2 * @generated SignedSource<<8d07fc631e364271a41ea2bd1ab069bb>>
3 * @lightSyntaxTransform
4 * @nogrep
5 */
6
7/* tslint:disable */
8/* eslint-disable */
9// @ts-nocheck
10
11import { ConcreteRequest } from 'relay-runtime';
12export type FmTealAlphaFeedPlayWhereInput = {
13 actorHandle?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
14 and?: ReadonlyArray<FmTealAlphaFeedPlayWhereInput> | null | undefined;
15 cid?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
16 collection?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
17 did?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
18 duration?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
19 indexedAt?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
20 isrc?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
21 musicServiceBaseDomain?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
22 or?: ReadonlyArray<FmTealAlphaFeedPlayWhereInput> | null | undefined;
23 originUrl?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
24 playedTime?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
25 recordingMbId?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
26 releaseMbId?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
27 releaseName?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
28 submissionClientAgent?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
29 trackMbId?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
30 trackName?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
31 uri?: FmTealAlphaFeedPlayFieldCondition | null | undefined;
32};
33export type FmTealAlphaFeedPlayFieldCondition = {
34 contains?: string | null | undefined;
35 eq?: string | null | undefined;
36 gt?: string | null | undefined;
37 gte?: string | null | undefined;
38 in?: ReadonlyArray<string> | null | undefined;
39 lt?: string | null | undefined;
40 lte?: string | null | undefined;
41};
42export type TopAlbumsQuery$variables = {
43 where?: FmTealAlphaFeedPlayWhereInput | null | undefined;
44};
45export type TopAlbumsQuery$data = {
46 readonly fmTealAlphaFeedPlayAggregated: ReadonlyArray<{
47 readonly artists: string | null | undefined;
48 readonly count: number;
49 readonly releaseMbId: string | null | undefined;
50 readonly releaseName: string | null | undefined;
51 }> | null | undefined;
52};
53export type TopAlbumsQuery = {
54 response: TopAlbumsQuery$data;
55 variables: TopAlbumsQuery$variables;
56};
57
58const node: ConcreteRequest = (function(){
59var v0 = [
60 {
61 "defaultValue": null,
62 "kind": "LocalArgument",
63 "name": "where"
64 }
65],
66v1 = [
67 {
68 "alias": null,
69 "args": [
70 {
71 "kind": "Literal",
72 "name": "groupBy",
73 "value": [
74 {
75 "field": "releaseMbId"
76 },
77 {
78 "field": "releaseName"
79 },
80 {
81 "field": "artists"
82 }
83 ]
84 },
85 {
86 "kind": "Literal",
87 "name": "limit",
88 "value": 100
89 },
90 {
91 "kind": "Literal",
92 "name": "orderBy",
93 "value": {
94 "count": "DESC"
95 }
96 },
97 {
98 "kind": "Variable",
99 "name": "where",
100 "variableName": "where"
101 }
102 ],
103 "concreteType": "FmTealAlphaFeedPlayAggregated",
104 "kind": "LinkedField",
105 "name": "fmTealAlphaFeedPlayAggregated",
106 "plural": true,
107 "selections": [
108 {
109 "alias": null,
110 "args": null,
111 "kind": "ScalarField",
112 "name": "releaseMbId",
113 "storageKey": null
114 },
115 {
116 "alias": null,
117 "args": null,
118 "kind": "ScalarField",
119 "name": "releaseName",
120 "storageKey": null
121 },
122 {
123 "alias": null,
124 "args": null,
125 "kind": "ScalarField",
126 "name": "artists",
127 "storageKey": null
128 },
129 {
130 "alias": null,
131 "args": null,
132 "kind": "ScalarField",
133 "name": "count",
134 "storageKey": null
135 }
136 ],
137 "storageKey": null
138 }
139];
140return {
141 "fragment": {
142 "argumentDefinitions": (v0/*: any*/),
143 "kind": "Fragment",
144 "metadata": null,
145 "name": "TopAlbumsQuery",
146 "selections": (v1/*: any*/),
147 "type": "Query",
148 "abstractKey": null
149 },
150 "kind": "Request",
151 "operation": {
152 "argumentDefinitions": (v0/*: any*/),
153 "kind": "Operation",
154 "name": "TopAlbumsQuery",
155 "selections": (v1/*: any*/)
156 },
157 "params": {
158 "cacheID": "6b742b6a57c908748af1780da995e31c",
159 "id": null,
160 "metadata": {},
161 "name": "TopAlbumsQuery",
162 "operationKind": "query",
163 "text": "query TopAlbumsQuery(\n $where: FmTealAlphaFeedPlayWhereInput\n) {\n fmTealAlphaFeedPlayAggregated(groupBy: [{field: releaseMbId}, {field: releaseName}, {field: artists}], orderBy: {count: DESC}, limit: 100, where: $where) {\n releaseMbId\n releaseName\n artists\n count\n }\n}\n"
164 }
165};
166})();
167
168(node as any).hash = "13fd8a47c19eeb4f327f0d6d869b73cd";
169
170export default node;