@vladimirdev635/gql-codegen 0.0.76 → 0.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -160,7 +160,7 @@ function generateFragmentSpecDeclarations(scalarsMapping, schema, fragmentName,
160
160
  return [
161
161
  generateFragmentDocumentNode(schema, fragmentName, fragment),
162
162
  generateZodFragmentSchema(scalarsMapping, schema, fragmentName, fragment),
163
- generateZodInferTypeAlias(fName, generateSchemaName(fName))
163
+ generateZodInferTypeAlias('output', fName, generateSchemaName(fName))
164
164
  ];
165
165
  }
166
166
  export function generateFragmentTypes(scalarsMapping, schema) {
@@ -13,7 +13,8 @@ const operationTypeNode = ts.factory.createInterfaceDeclaration(ts.factory.creat
13
13
  ])),
14
14
  ts.factory.createPropertySignature(undefined, 'resultSchema', undefined, ts.factory.createTypeReferenceNode('z.ZodType', [
15
15
  ts.factory.createTypeReferenceNode('R')
16
- ]))
16
+ ])),
17
+ ts.factory.createPropertySignature(undefined, 'hash', undefined, ts.factory.createTypeReferenceNode('string')),
17
18
  ]);
18
19
  export function generateClientNodes(config, context) {
19
20
  return [
@@ -22,7 +22,8 @@ function generateOperationNode(schema, operation) {
22
22
  ...extractFragmentSourceTextsInSpec(schema, operation.fragmentSpec)
23
23
  ].join(' '))),
24
24
  ts.factory.createPropertyAssignment('variablesSchema', ts.factory.createIdentifier(generateSchemaName(operation.name + 'Variables'))),
25
- ts.factory.createPropertyAssignment('resultSchema', ts.factory.createIdentifier(generateSchemaName(operation.name + 'Result')))
25
+ ts.factory.createPropertyAssignment('resultSchema', ts.factory.createIdentifier(generateSchemaName(operation.name + 'Result'))),
26
+ ts.factory.createPropertyAssignment('hash', ts.factory.createStringLiteral(operation.hash))
26
27
  ], true), ts.factory.createTypeReferenceNode('const')), ts.factory.createTypeReferenceNode('Operation', [
27
28
  ts.factory.createTypeReferenceNode(operation.name + 'Variables'),
28
29
  ts.factory.createTypeReferenceNode(operation.name + 'Result'),
@@ -37,10 +38,10 @@ function genearteOperationZodOutputSchema(scalarsMapping, schema, operation) {
37
38
  function generateOperationNodes(scalarsMapping, schema, operation) {
38
39
  return [
39
40
  generateOperationZodInputSchema(scalarsMapping, operation),
40
- generateZodInferTypeAlias(operation.name + 'Variables', generateSchemaName(operation.name + 'Variables')),
41
+ generateZodInferTypeAlias('input', operation.name + 'Variables', generateSchemaName(operation.name + 'Variables')),
41
42
  ts.factory.createIdentifier('\n'),
42
43
  genearteOperationZodOutputSchema(scalarsMapping, schema, operation),
43
- generateZodInferTypeAlias(operation.name + 'Result', generateSchemaName(operation.name + 'Result')),
44
+ generateZodInferTypeAlias('output', operation.name + 'Result', generateSchemaName(operation.name + 'Result')),
44
45
  generateOperationNode(schema, operation),
45
46
  ts.factory.createIdentifier('\n')
46
47
  ];
@@ -53,7 +53,7 @@ function generateZodInputTypeDefinition(scalarsMapping, name, fields) {
53
53
  export function generateInputTypeDefinitions(scalarsMapping, input) {
54
54
  return [
55
55
  generateZodInputTypeDefinition(scalarsMapping, input.name, input.fields),
56
- generateZodInferTypeAlias(input.name, generateSchemaName(input.name)),
56
+ generateZodInferTypeAlias('input', input.name, generateSchemaName(input.name)),
57
57
  ts.factory.createIdentifier('\n')
58
58
  ];
59
59
  }
@@ -97,7 +97,7 @@ export function generateZodObjectTypeNode(scalarsMapping, object) {
97
97
  export function generateObjectTypeNodes(scalarsMapping, object) {
98
98
  return [
99
99
  generateZodObjectTypeNode(scalarsMapping, object),
100
- generateZodInferTypeAlias(object.name, generateSchemaName(object.name)),
100
+ generateZodInferTypeAlias('output', object.name, generateSchemaName(object.name)),
101
101
  ts.factory.createIdentifier('\n')
102
102
  ];
103
103
  }
@@ -13,4 +13,8 @@ export declare const additionalScalarsMapping: {
13
13
  readonly outputSchema: ts.CallExpression;
14
14
  };
15
15
  readonly Void: ScalarSpec;
16
+ readonly Date: {
17
+ readonly inputSchema: ts.CallExpression;
18
+ readonly outputSchema: ts.CallExpression;
19
+ };
16
20
  };
@@ -7,7 +7,7 @@ export const additionalScalarsMapping = {
7
7
  Int64: builtinScalarsMapping.Int,
8
8
  UUID: builtinScalarsMapping.String,
9
9
  Datetime: {
10
- inputSchema: ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier('z'), 'date'), undefined, []),
10
+ inputSchema: invokeMethod(ts.factory.createIdentifier('z'), 'date', []),
11
11
  outputSchema: invokeMethod(invokeMethod(ts.factory.createIdentifier('z'), 'string', []), 'transform', [ts.factory.createArrowFunction(undefined, undefined, [ts.factory.createParameterDeclaration(undefined, undefined, 'v')], undefined, ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), ts.factory.createNewExpression(ts.factory.createIdentifier('Date'), [], [ts.factory.createIdentifier('v')]))])
12
12
  },
13
13
  Upload: buildSymmetricScalarSpec(ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier('z'), 'file'), undefined, [])),
@@ -16,4 +16,10 @@ export const additionalScalarsMapping = {
16
16
  outputSchema: ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier('z'), 'custom'), [ts.factory.createTypeReferenceNode('URL')], []),
17
17
  },
18
18
  Void: buildSymmetricScalarSpec(ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier('z'), 'any'), undefined, [])),
19
+ Date: {
20
+ inputSchema: invokeMethod(invokeMethod(ts.factory.createIdentifier('z'), 'date', []), 'transform', [
21
+ ts.factory.createArrowFunction(undefined, undefined, [ts.factory.createParameterDeclaration(undefined, undefined, 'v')], undefined, ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), ts.factory.createElementAccessExpression(invokeMethod(invokeMethod(ts.factory.createIdentifier('v'), 'toISOString', []), 'split', [ts.factory.createStringLiteral('T')]), ts.factory.createNumericLiteral(0)))
22
+ ]),
23
+ outputSchema: invokeMethod(invokeMethod(ts.factory.createIdentifier('z'), 'string', []), 'transform', [ts.factory.createArrowFunction(undefined, undefined, [ts.factory.createParameterDeclaration(undefined, undefined, 'v')], undefined, ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), ts.factory.createNewExpression(ts.factory.createIdentifier('Date'), [], [ts.factory.createIdentifier('v')]))])
24
+ },
19
25
  };
@@ -4,5 +4,5 @@ import { objectNonCallableFieldSpecSchema } from '../../../../../schema/server.j
4
4
  import { inputFieldSpecSchema } from '../../../../../schema/shared.js';
5
5
  export declare function generateNonCallableFieldSpec(scalars: string[], spec: z.infer<typeof objectNonCallableFieldSpecSchema> | z.infer<typeof inputFieldSpecSchema>): ts.TypeReferenceNode | ts.IndexedAccessTypeNode | ts.ArrayTypeNode;
6
6
  export declare function wrapInMaybeIfNullable(spec: ts.TypeNode, nullable: boolean): ts.TypeNode;
7
- export declare function generateZodInferTypeAlias(name: string, typeName: string): ts.TypeAliasDeclaration;
7
+ export declare function generateZodInferTypeAlias(inferType: 'input' | 'output', name: string, typeName: string): ts.TypeAliasDeclaration;
8
8
  export declare function generateSchemaName(name: string): string;
@@ -13,8 +13,8 @@ export function wrapInMaybeIfNullable(spec, nullable) {
13
13
  ts.factory.createTypeReferenceNode('Maybe', [spec]) :
14
14
  spec;
15
15
  }
16
- export function generateZodInferTypeAlias(name, typeName) {
17
- return ts.factory.createTypeAliasDeclaration(ts.factory.createModifiersFromModifierFlags(ts.ModifierFlags.Export), name, undefined, ts.factory.createTypeReferenceNode('z.infer', [ts.factory.createTypeQueryNode(ts.factory.createIdentifier(typeName), undefined)]));
16
+ export function generateZodInferTypeAlias(inferType, name, typeName) {
17
+ return ts.factory.createTypeAliasDeclaration(ts.factory.createModifiersFromModifierFlags(ts.ModifierFlags.Export), name, undefined, ts.factory.createTypeReferenceNode('z.' + inferType, [ts.factory.createTypeQueryNode(ts.factory.createIdentifier(typeName), undefined)]));
18
18
  }
19
19
  export function generateSchemaName(name) {
20
20
  return name[0].toLowerCase() + name.slice(1) + 'Schema';
@@ -12,7 +12,7 @@ function generateZodUnionTypeNode(scalarsMapping, objects, union) {
12
12
  export function generateUnionTypeDefinitions(scalarsMapping, objects, union) {
13
13
  return [
14
14
  generateZodUnionTypeNode(scalarsMapping, objects, union),
15
- generateZodInferTypeAlias(union.name, generateSchemaName(union.name)),
15
+ generateZodInferTypeAlias('output', union.name, generateSchemaName(union.name)),
16
16
  ts.factory.createIdentifier('\n')
17
17
  ];
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vladimirdev635/gql-codegen",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -49,4 +49,5 @@ export declare const operationSchema: z.ZodObject<{
49
49
  selections: z.ZodArray<import("./fragment.js").UnionSelectionZodType>;
50
50
  }, z.core.$strip>]>;
51
51
  sourceText: z.ZodString;
52
+ hash: z.ZodString;
52
53
  }, z.core.$strip>;
@@ -6,5 +6,6 @@ export const operationSchema = z.object({
6
6
  type: z.enum(['MUTATION', 'QUERY', 'SUBSCRIPTION']),
7
7
  parameters: z.record(z.string(), inputFieldSchema),
8
8
  fragmentSpec: fragmentSpecSchema,
9
- sourceText: z.string()
9
+ sourceText: z.string(),
10
+ hash: z.string()
10
11
  });
@@ -62,6 +62,7 @@ export declare const clientSchema: z.ZodObject<{
62
62
  selections: z.ZodArray<import("./fragment.js").UnionSelectionZodType>;
63
63
  }, z.core.$strip>]>;
64
64
  sourceText: z.ZodString;
65
+ hash: z.ZodString;
65
66
  }, z.core.$strip>>;
66
67
  directives: z.ZodRecord<z.ZodString, z.ZodObject<{
67
68
  name: z.ZodString;
@@ -6,12 +6,12 @@ import { clientSchema } from './client/root.js';
6
6
  describe('Server schema', () => {
7
7
  it('Should parse ok', () => {
8
8
  const result = serverSchema.safeParse(testServerJSON);
9
- expect(result.success, result.error?.message || '').toBe(true);
9
+ expect(result.success, result.error?.message.slice(0, 100) || '').toBe(true);
10
10
  });
11
11
  });
12
12
  describe('Client schema', () => {
13
13
  it('Should parse ok', () => {
14
14
  const result = clientSchema.safeParse(testClientJSON);
15
- expect(result.success, result.error?.message || '').toBe(true);
15
+ expect(result.success, result.error?.message.slice(0, 100) || '').toBe(true);
16
16
  });
17
17
  });
@@ -1 +1 @@
1
- { "fragments": { "Event": { "sourceText": "fragment Event on Event { __typename\t... on EventFileDownloaded { ...EventFileDownloaded }\t... on EventFileUploaded { ...EventFileUploaded }\t... on EventFileDeleted { ...EventFileDeleted } ... on EventFileDownloadRequested { ...EventFileDownloadRequested }\t... on EventFileTagsEdited { ...EventFileTagsEdited }\t... on EventTagApprovalIsRequested { ...EventTagApprovalIsRequested }}", "spec": { "_type": "UnionFragmentSpec", "name": "Event", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileDownloaded", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDownloaded", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileDownloaded" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileUploaded", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileUploaded", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileUploaded" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileDeleted", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDeleted", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileDeleted" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileDownloadRequested", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDownloadRequested", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileDownloadRequested" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileTagsEdited", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileTagsEdited", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileTagsEdited" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventTagApprovalIsRequested", "spec": { "_type": "ObjectFragmentSpec", "name": "EventTagApprovalIsRequested", "selections": [{ "_type": "SpreadSelection", "fragment": "EventTagApprovalIsRequested" }] } }] } }, "EventFileDeleted": { "sourceText": "fragment EventFileDeleted on EventFileDeleted { file { ...File } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDeleted", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventFileDownloadRequested": { "sourceText": "fragment EventFileDownloadRequested on EventFileDownloadRequested { file { ...File } user { ...User } decision createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDownloadRequested", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "user", "alias": "user", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "SpreadSelection", "fragment": "User" }] } }, { "_type": "FieldSelection", "name": "decision", "alias": "decision", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventFileDownloaded": { "sourceText": "fragment EventFileDownloaded on EventFileDownloaded { file { ...File } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDownloaded", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventFileTagsEdited": { "sourceText": "fragment EventFileTagsEdited on EventFileTagsEdited { file { ...File } addedTags { ...Tag } removedTags { ...Tag } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileTagsEdited", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "addedTags", "alias": "addedTags", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }, { "_type": "FieldSelection", "name": "removedTags", "alias": "removedTags", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventFileUploaded": { "sourceText": "fragment EventFileUploaded on EventFileUploaded { file { ...File } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileUploaded", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventTagApprovalIsRequested": { "sourceText": "fragment EventTagApprovalIsRequested on EventTagApprovalIsRequested { tag { ...Tag } author { ...User } alreadyInCatalog createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventTagApprovalIsRequested", "selections": [{ "_type": "FieldSelection", "name": "tag", "alias": "tag", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }, { "_type": "FieldSelection", "name": "author", "alias": "author", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "SpreadSelection", "fragment": "User" }] } }, { "_type": "FieldSelection", "name": "alreadyInCatalog", "alias": "alreadyInCatalog", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "File": { "sourceText": "fragment File on File { id filename mimeType previewUrl createdAt sizeInBytes user { name }}", "spec": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "filename", "alias": "filename", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "mimeType", "alias": "mimeType", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "previewUrl", "alias": "previewUrl", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "sizeInBytes", "alias": "sizeInBytes", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "user", "alias": "user", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }] } }] } }, "Group": { "sourceText": "fragment Group on Group { id name first10Tags { ...Tag } limitOfDownloadsPerDay}", "spec": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "first10Tags", "alias": "first10Tags", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }, { "_type": "FieldSelection", "name": "limitOfDownloadsPerDay", "alias": "limitOfDownloadsPerDay", "arguments": {}, "selection": null }] } }, "GroupUser": { "sourceText": "fragment GroupUser on GroupUser { inGroup user { ...User }}", "spec": { "_type": "ObjectFragmentSpec", "name": "GroupUser", "selections": [{ "_type": "FieldSelection", "name": "inGroup", "alias": "inGroup", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "user", "alias": "user", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "SpreadSelection", "fragment": "User" }] } }] } }, "GroupUserList": { "sourceText": "fragment GroupUserList on GroupUserList { users { ...GroupUser }}", "spec": { "_type": "ObjectFragmentSpec", "name": "GroupUserList", "selections": [{ "_type": "FieldSelection", "name": "users", "alias": "users", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "GroupUser", "selections": [{ "_type": "SpreadSelection", "fragment": "GroupUser" }] } }] } }, "Tag": { "sourceText": "fragment Tag on Tag { id tag isFavourite hasChildren isApproved}", "spec": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "tag", "alias": "tag", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "isFavourite", "alias": "isFavourite", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "hasChildren", "alias": "hasChildren", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "isApproved", "alias": "isApproved", "arguments": {}, "selection": null }] } }, "User": { "sourceText": "fragment User on User { id name email tenGroups { id name } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "email", "alias": "email", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "tenGroups", "alias": "tenGroups", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "UsersList": { "sourceText": "fragment UsersList on UsersList { users { ...User }}", "spec": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "FieldSelection", "name": "users", "alias": "users", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "SpreadSelection", "fragment": "User" }] } }] } } }, "operations": { "AddUserToGroup": { "name": "AddUserToGroup", "type": "MUTATION", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$userId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "addUserToGroup", "alias": "error", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "userId": { "name": "userId", "value": { "_type": "ref", "name": "$userId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "ErrorGroupNotFoundOrErrorNotFound", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation AddUserToGroup($groupId: UUID!, $userId: UUID!) { error: addUserToGroup(groupId: $groupId, userId: $userId) { __typename }}" }, "CreateGroup": { "name": "CreateGroup", "type": "MUTATION", "parameters": { "$groupIn": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GroupIn", "$ref": "#/server/inputs/GroupIn" } } }, "$userIds": { "nullable": false, "spec": { "_type": "array", "nullable": false, "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "createGroup", "alias": "error", "arguments": { "groupIn": { "name": "groupIn", "value": { "_type": "ref", "name": "$groupIn" } }, "userIds": { "name": "userIds", "value": { "_type": "ref", "name": "$userIds" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "CreateGroupError", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "FieldSelection", "name": "tagIds", "alias": "tagIds", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "mutation CreateGroup($groupIn: GroupIn!, $userIds: [UUID!]!) { error: createGroup(groupIn: $groupIn, userIds: $userIds) { __typename ... on ErrorUnknownTags { tagIds } }}" }, "DeleteGroup": { "name": "DeleteGroup", "type": "MUTATION", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "deleteGroup", "alias": "error", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "ErrorGroupNotFound", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation DeleteGroup($id: UUID!) { error: deleteGroup(id: $id) { __typename }}" }, "EditGroup": { "name": "EditGroup", "type": "MUTATION", "parameters": { "$groupIn": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GroupIn", "$ref": "#/server/inputs/GroupIn" } } }, "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "editGroup", "alias": "error", "arguments": { "groupIn": { "name": "groupIn", "value": { "_type": "ref", "name": "$groupIn" } }, "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "EditGroupError", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "FieldSelection", "name": "tagIds", "alias": "tagIds", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "mutation EditGroup($id: UUID!, $groupIn: GroupIn!) { error: editGroup(id: $id, groupIn: $groupIn) { __typename ... on ErrorUnknownTags { tagIds } }}" }, "GetEvents": { "name": "GetEvents", "type": "QUERY", "parameters": { "$dateRange": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "DateRange", "$ref": "#/server/inputs/DateRange" } } }, "$filters": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "EventFiltersIn", "$ref": "#/server/inputs/EventFiltersIn" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getEvents", "alias": "events", "arguments": { "dateRange": { "name": "dateRange", "value": { "_type": "ref", "name": "$dateRange" } }, "filters": { "name": "filters", "value": { "_type": "ref", "name": "$filters" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetEventsResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventsList", "spec": { "_type": "ObjectFragmentSpec", "name": "EventsList", "selections": [{ "_type": "FieldSelection", "name": "events", "alias": "events", "arguments": {}, "selection": { "_type": "UnionFragmentSpec", "name": "Event", "selections": [{ "_type": "SpreadSelection", "fragment": "Event" }] } }] } }] } }] }, "sourceText": "query GetEvents( $skip: Int!, $limit: Int!, $dateRange: DateRange!, $filters: EventFiltersIn!, $query: String) { events: getEvents( skip: $skip, limit: $limit, dateRange: $dateRange, filters: $filters, query: $query, ) { __typename ... on EventsList { events { ...Event } } }}" }, "GetGroupTags": { "name": "GetGroupTags", "type": "QUERY", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupTags", "alias": "tags", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupTagsResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "TagList", "spec": { "_type": "ObjectFragmentSpec", "name": "TagList", "selections": [{ "_type": "FieldSelection", "name": "list", "alias": "list", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] } }] } }] }, "sourceText": "query GetGroupTags($id: UUID!, $skip: Int!, $limit: Int!) { tags: getGroupTags(id: $id, skip: $skip, limit: $limit) { __typename ... on TagList { list { ...Tag } } }}" }, "GetGroupUsers": { "name": "GetGroupUsers", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetGroupUsersSortBy", "$ref": "#/server/inputs/GetGroupUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsers", "alias": "users", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "UsersList", "spec": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersList" }] } }] } }] }, "sourceText": "query GetGroupUsers( $groupId: UUID!, $skip: Int!, $limit: Int!, $sortBy: GetGroupUsersSortBy!) { users: getGroupUsers( groupId: $groupId, skip: $skip, limit: $limit, sortBy: $sortBy ) { __typename ... on UsersList { ...UsersList } }}" }, "GetGroupUsersAndTotal": { "name": "GetGroupUsersAndTotal", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetGroupUsersSortBy", "$ref": "#/server/inputs/GetGroupUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsers", "alias": "users", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "UsersList", "spec": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersList" }] } }] } }, { "_type": "FieldSelection", "name": "getGroupUsersTotal", "alias": "total", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersTotalResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "IntObject", "spec": { "_type": "ObjectFragmentSpec", "name": "IntObject", "selections": [{ "_type": "FieldSelection", "name": "value", "alias": "value", "arguments": {}, "selection": null }] } }] } }, { "_type": "FieldSelection", "name": "retrieveGroup", "alias": "group", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$groupId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "RetrieveGroupResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "Group", "spec": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "query GetGroupUsersAndTotal( $groupId: UUID!, $skip: Int!, $limit: Int!, $sortBy: GetGroupUsersSortBy!) { users: getGroupUsers( groupId: $groupId, skip: $skip, limit: $limit, sortBy: $sortBy ) { __typename ... on UsersList { ...UsersList } } total: getGroupUsersTotal(groupId: $groupId) { __typename ... on IntObject { value } } group: retrieveGroup(id: $groupId) { __typename ... on Group { name } }}" }, "GetGroupUsersAndUsers": { "name": "GetGroupUsersAndUsers", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetUsersSortBy", "$ref": "#/server/inputs/GetUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsersAndUsers", "alias": "users", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersAndUsersResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "GroupUserList", "spec": { "_type": "ObjectFragmentSpec", "name": "GroupUserList", "selections": [{ "_type": "SpreadSelection", "fragment": "GroupUserList" }] } }] } }] }, "sourceText": "query GetGroupUsersAndUsers( $skip: Int!, $limit: Int!, $groupId: UUID!, $sortBy: GetUsersSortBy!, $query: String) { users: getGroupUsersAndUsers( skip: $skip, limit: $limit, sortBy: $sortBy, groupId: $groupId, query: $query ) { __typename ... on GroupUserList { ...GroupUserList } }}" }, "GetGroupUsersAndUsersAndTotal": { "name": "GetGroupUsersAndUsersAndTotal", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetUsersSortBy", "$ref": "#/server/inputs/GetUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsersAndUsers", "alias": "users", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersAndUsersResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "GroupUserList", "spec": { "_type": "ObjectFragmentSpec", "name": "GroupUserList", "selections": [{ "_type": "SpreadSelection", "fragment": "GroupUserList" }] } }] } }, { "_type": "FieldSelection", "name": "getUsersTotal", "alias": "total", "arguments": { "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } } }, "selection": null }] }, "sourceText": "query GetGroupUsersAndUsersAndTotal( $skip: Int!, $limit: Int!, $groupId: UUID!, $sortBy: GetUsersSortBy!, $query: String) { users: getGroupUsersAndUsers( skip: $skip, limit: $limit, sortBy: $sortBy, groupId: $groupId, query: $query ) { __typename ... on GroupUserList { ...GroupUserList } } total: getUsersTotal(query: $query)}" }, "GetGroupUsersTotal": { "name": "GetGroupUsersTotal", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsersTotal", "alias": "total", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersTotalResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "IntObject", "spec": { "_type": "ObjectFragmentSpec", "name": "IntObject", "selections": [{ "_type": "FieldSelection", "name": "value", "alias": "value", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "query GetGroupUsersTotal($groupId: UUID!) { total: getGroupUsersTotal(groupId: $groupId) { __typename ... on IntObject { value } }}" }, "GetGroups": { "name": "GetGroups", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetGroupsSortBy", "$ref": "#/server/inputs/GetGroupsSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroups", "alias": "groups", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "SpreadSelection", "fragment": "Group" }] } }] }, "sourceText": "query GetGroups($skip: Int!, $limit: Int!, $sortBy: GetGroupsSortBy!) { groups: getGroups(skip: $skip, limit: $limit, sortBy: $sortBy) { ...Group }}" }, "GetGroupsAndTotal": { "name": "GetGroupsAndTotal", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetGroupsSortBy", "$ref": "#/server/inputs/GetGroupsSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroups", "alias": "groups", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "SpreadSelection", "fragment": "Group" }] } }, { "_type": "FieldSelection", "name": "getGroupsTotal", "alias": "total", "arguments": {}, "selection": null }] }, "sourceText": "query GetGroupsAndTotal($skip: Int!, $limit: Int!, $sortBy: GetGroupsSortBy!) { groups: getGroups(skip: $skip, limit: $limit, sortBy: $sortBy) { ...Group } total: getGroupsTotal}" }, "GetGroupsTotal": { "name": "GetGroupsTotal", "type": "QUERY", "parameters": {}, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupsTotal", "alias": "total", "arguments": {}, "selection": null }] }, "sourceText": "query GetGroupsTotal { total: getGroupsTotal}" }, "GetMe": { "name": "GetMe", "type": "QUERY", "parameters": {}, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getMe", "alias": "getMe", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "email", "alias": "email", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "tenGroups", "alias": "tenGroups", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "query GetMe { getMe { name email tenGroups { name } }}" }, "GetUsers": { "name": "GetUsers", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetUsersSortBy", "$ref": "#/server/inputs/GetUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUsers", "alias": "users", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersList" }] } }] }, "sourceText": "query GetUsers( $skip: Int!, $limit: Int!, $sortBy: GetUsersSortBy!, $query: String) { users: getUsers( skip: $skip, limit: $limit, sortBy: $sortBy, query: $query ) { ...UsersList }}" }, "GetUsersTotalAndUsers": { "name": "GetUsersTotalAndUsers", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetUsersSortBy", "$ref": "#/server/inputs/GetUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUsersTotal", "alias": "total", "arguments": { "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } } }, "selection": null }, { "_type": "FieldSelection", "name": "getUsers", "alias": "users", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersList" }] } }] }, "sourceText": "query GetUsersTotalAndUsers( $skip: Int!, $limit: Int!, $sortBy: GetUsersSortBy!, $query: String) { total: getUsersTotal(query: $query) users: getUsers( skip: $skip, limit: $limit, sortBy: $sortBy, query: $query ) { ...UsersList }}" }, "RemoveUserFromGroup": { "name": "RemoveUserFromGroup", "type": "MUTATION", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$userId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "removeUserFromGroup", "alias": "error", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "userId": { "name": "userId", "value": { "_type": "ref", "name": "$userId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "ErrorGroupNotFoundOrErrorNotFound", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation RemoveUserFromGroup($groupId: UUID!, $userId: UUID!) { error: removeUserFromGroup(groupId: $groupId, userId: $userId) { __typename }}" }, "RetrieveGroupAndTags": { "name": "RetrieveGroupAndTags", "type": "QUERY", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "retrieveGroup", "alias": "group", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "RetrieveGroupResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "Group", "spec": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "SpreadSelection", "fragment": "Group" }] } }] } }, { "_type": "FieldSelection", "name": "getGroupTags", "alias": "tags", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } }, "limit": { "name": "limit", "value": { "_type": "literal", "value": 10000000 } }, "skip": { "name": "skip", "value": { "_type": "literal", "value": 0 } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupTagsResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "TagList", "spec": { "_type": "ObjectFragmentSpec", "name": "TagList", "selections": [{ "_type": "FieldSelection", "name": "list", "alias": "list", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] } }] } }] }, "sourceText": "query RetrieveGroupAndTags($id: UUID!) { group: retrieveGroup(id: $id) { __typename ... on Group { ...Group } } tags: getGroupTags(id: $id, skip: 0, limit: 10000000) { __typename ... on TagList { list { ...Tag } } }}" } }, "directives": {} }
1
+ { "fragments": { "Deal": { "sourceText": "fragment Deal on Deal { projectManager { ...SmallTag } projectLead { ...SmallTag } site { ...SmallTag } stage { ...SmallTag } architect { ...SmallTag } area { ...SmallTag } archive { ...SmallTag } place { ...SmallTag } qualification { ...SmallTag } mathArea { ...SmallTag } diameter { ...SmallTag }}", "spec": { "_type": "ObjectFragmentSpec", "name": "Deal", "selections": [{ "_type": "FieldSelection", "name": "projectManager", "alias": "projectManager", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "projectLead", "alias": "projectLead", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "site", "alias": "site", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "stage", "alias": "stage", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "architect", "alias": "architect", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "area", "alias": "area", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "archive", "alias": "archive", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "place", "alias": "place", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "qualification", "alias": "qualification", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "mathArea", "alias": "mathArea", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "diameter", "alias": "diameter", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }] } }, "ErrorUnknownFiles": { "sourceText": "fragment ErrorUnknownFiles on ErrorUnknownFiles { ids}", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownFiles", "selections": [{ "_type": "FieldSelection", "name": "ids", "alias": "ids", "arguments": {}, "selection": null }] } }, "ErrorUnknownTags": { "sourceText": "fragment ErrorUnknownTags on ErrorUnknownTags { tagIds}", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "FieldSelection", "name": "tagIds", "alias": "tagIds", "arguments": {}, "selection": null }] } }, "Event": { "sourceText": "fragment Event on Event { __typename\t... on EventFileDownloaded { ...EventFileDownloaded }\t... on EventFileUploaded { ...EventFileUploaded }\t... on EventFileDeleted { ...EventFileDeleted } ... on EventFileDownloadRequested { ...EventFileDownloadRequested }\t... on EventFileTagsEdited { ...EventFileTagsEdited }\t... on EventTagApprovalIsRequested { ...EventTagApprovalIsRequested }}", "spec": { "_type": "UnionFragmentSpec", "name": "Event", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileDownloaded", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDownloaded", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileDownloaded" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileUploaded", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileUploaded", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileUploaded" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileDeleted", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDeleted", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileDeleted" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileDownloadRequested", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDownloadRequested", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileDownloadRequested" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventFileTagsEdited", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileTagsEdited", "selections": [{ "_type": "SpreadSelection", "fragment": "EventFileTagsEdited" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventTagApprovalIsRequested", "spec": { "_type": "ObjectFragmentSpec", "name": "EventTagApprovalIsRequested", "selections": [{ "_type": "SpreadSelection", "fragment": "EventTagApprovalIsRequested" }] } }] } }, "EventFileDeleted": { "sourceText": "fragment EventFileDeleted on EventFileDeleted { file { ...File } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDeleted", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventFileDownloadRequested": { "sourceText": "fragment EventFileDownloadRequested on EventFileDownloadRequested { file { ...File } user { ...User } decision createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDownloadRequested", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "user", "alias": "user", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "SpreadSelection", "fragment": "User" }] } }, { "_type": "FieldSelection", "name": "decision", "alias": "decision", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventFileDownloaded": { "sourceText": "fragment EventFileDownloaded on EventFileDownloaded { file { ...File } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileDownloaded", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventFileTagsEdited": { "sourceText": "fragment EventFileTagsEdited on EventFileTagsEdited { file { ...File } addedTags { ...Tag } removedTags { ...Tag } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileTagsEdited", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "addedTags", "alias": "addedTags", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }, { "_type": "FieldSelection", "name": "removedTags", "alias": "removedTags", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventFileUploaded": { "sourceText": "fragment EventFileUploaded on EventFileUploaded { file { ...File } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventFileUploaded", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "EventTagApprovalIsRequested": { "sourceText": "fragment EventTagApprovalIsRequested on EventTagApprovalIsRequested { tag { ...Tag } author { ...User } alreadyInCatalog createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "EventTagApprovalIsRequested", "selections": [{ "_type": "FieldSelection", "name": "tag", "alias": "tag", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }, { "_type": "FieldSelection", "name": "author", "alias": "author", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "SpreadSelection", "fragment": "User" }] } }, { "_type": "FieldSelection", "name": "alreadyInCatalog", "alias": "alreadyInCatalog", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "File": { "sourceText": "fragment File on File { id filename mimeType previewUrl createdAt sizeInBytes user { name }}", "spec": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "filename", "alias": "filename", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "mimeType", "alias": "mimeType", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "previewUrl", "alias": "previewUrl", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "sizeInBytes", "alias": "sizeInBytes", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "user", "alias": "user", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }] } }] } }, "Group": { "sourceText": "fragment Group on Group { id name first10Tags { ...Tag } limitOfDownloadsPerDay}", "spec": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "first10Tags", "alias": "first10Tags", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }, { "_type": "FieldSelection", "name": "limitOfDownloadsPerDay", "alias": "limitOfDownloadsPerDay", "arguments": {}, "selection": null }] } }, "GroupUser": { "sourceText": "fragment GroupUser on GroupUser { inGroup user { ...User }}", "spec": { "_type": "ObjectFragmentSpec", "name": "GroupUser", "selections": [{ "_type": "FieldSelection", "name": "inGroup", "alias": "inGroup", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "user", "alias": "user", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "SpreadSelection", "fragment": "User" }] } }] } }, "GroupUserList": { "sourceText": "fragment GroupUserList on GroupUserList { users { ...GroupUser }}", "spec": { "_type": "ObjectFragmentSpec", "name": "GroupUserList", "selections": [{ "_type": "FieldSelection", "name": "users", "alias": "users", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "GroupUser", "selections": [{ "_type": "SpreadSelection", "fragment": "GroupUser" }] } }] } }, "IntObject": { "sourceText": "fragment IntObject on IntObject { value}", "spec": { "_type": "ObjectFragmentSpec", "name": "IntObject", "selections": [{ "_type": "FieldSelection", "name": "value", "alias": "value", "arguments": {}, "selection": null }] } }, "MultipartUploadSession": { "sourceText": "fragment MultipartUploadSession on MultipartUploadSession { id initialUploadURLs { ...UploadUrl }}", "spec": { "_type": "ObjectFragmentSpec", "name": "MultipartUploadSession", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "initialUploadURLs", "alias": "initialUploadURLs", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "UploadUrl", "selections": [{ "_type": "SpreadSelection", "fragment": "UploadUrl" }] } }] } }, "PendingUser": { "sourceText": "fragment PendingUser on PendingUser { ttl name email groups { ...Group } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "PendingUser", "selections": [{ "_type": "FieldSelection", "name": "ttl", "alias": "ttl", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "email", "alias": "email", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "groups", "alias": "groups", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "SpreadSelection", "fragment": "Group" }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "PutUploadSession": { "sourceText": "fragment PutUploadSession on PutUploadSession { id uploadURL { ...UploadUrl }}", "spec": { "_type": "ObjectFragmentSpec", "name": "PutUploadSession", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "uploadURL", "alias": "uploadURL", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "UploadUrl", "selections": [{ "_type": "SpreadSelection", "fragment": "UploadUrl" }] } }] } }, "SearchFile": { "sourceText": "fragment SearchFile on SearchFile { file { ...File } tags { ...SmallTag }}", "spec": { "_type": "ObjectFragmentSpec", "name": "SearchFile", "selections": [{ "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "SpreadSelection", "fragment": "File" }] } }, { "_type": "FieldSelection", "name": "tags", "alias": "tags", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }] } }, "SearchFileList": { "sourceText": "fragment SearchFileList on SearchFileList { files { ...SearchFile }}", "spec": { "_type": "ObjectFragmentSpec", "name": "SearchFileList", "selections": [{ "_type": "FieldSelection", "name": "files", "alias": "files", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "SearchFile", "selections": [{ "_type": "SpreadSelection", "fragment": "SearchFile" }] } }] } }, "SmallTag": { "sourceText": "fragment SmallTag on Tag { id tag}", "spec": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "tag", "alias": "tag", "arguments": {}, "selection": null }] } }, "Tag": { "sourceText": "fragment Tag on Tag { id tag isFavourite hasChildren isApproved}", "spec": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "tag", "alias": "tag", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "isFavourite", "alias": "isFavourite", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "hasChildren", "alias": "hasChildren", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "isApproved", "alias": "isApproved", "arguments": {}, "selection": null }] } }, "TagList": { "sourceText": "fragment TagList on TagList { list { ...Tag }}", "spec": { "_type": "ObjectFragmentSpec", "name": "TagList", "selections": [{ "_type": "FieldSelection", "name": "list", "alias": "list", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] } }, "UploadUrl": { "sourceText": "fragment UploadUrl on UploadUrl { url headers { key value }}", "spec": { "_type": "ObjectFragmentSpec", "name": "UploadUrl", "selections": [{ "_type": "FieldSelection", "name": "url", "alias": "url", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "headers", "alias": "headers", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "StringEntry", "selections": [{ "_type": "FieldSelection", "name": "key", "alias": "key", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "value", "alias": "value", "arguments": {}, "selection": null }] } }] } }, "User": { "sourceText": "fragment User on User { id name email tenGroups { id name } createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "email", "alias": "email", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "tenGroups", "alias": "tenGroups", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }] } }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } }, "UsersList": { "sourceText": "fragment UsersList on UsersList { users { ...User }}", "spec": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "FieldSelection", "name": "users", "alias": "users", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "SpreadSelection", "fragment": "User" }] } }] } }, "UsersTag": { "sourceText": "fragment UsersTag on UsersTag { tag { id tag } usersCount createdAt}", "spec": { "_type": "ObjectFragmentSpec", "name": "UsersTag", "selections": [{ "_type": "FieldSelection", "name": "tag", "alias": "tag", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "tag", "alias": "tag", "arguments": {}, "selection": null }] } }, { "_type": "FieldSelection", "name": "usersCount", "alias": "usersCount", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "createdAt", "alias": "createdAt", "arguments": {}, "selection": null }] } } }, "operations": { "AddTagToCatalog": { "name": "AddTagToCatalog", "type": "MUTATION", "parameters": { "$tagId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "addTagToCatalog", "alias": "error", "arguments": { "tagId": { "name": "tagId", "value": { "_type": "ref", "name": "$tagId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "AddTagToCatalogError", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation AddTagToCatalog($tagId: UUID!) { error: addTagToCatalog(tagId: $tagId) { __typename }}", "hash": "11118800150692197624" }, "AddTagsToFiles": { "name": "AddTagsToFiles", "type": "MUTATION", "parameters": { "$fileIds": { "nullable": false, "spec": { "_type": "array", "nullable": false, "type": { "_type": "Scalar", "name": "UUID" } } }, "$tagIds": { "nullable": false, "spec": { "_type": "array", "nullable": false, "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "addTagsToFiles", "alias": "error", "arguments": { "fileIds": { "name": "fileIds", "value": { "_type": "ref", "name": "$fileIds" } }, "tagIds": { "name": "tagIds", "value": { "_type": "ref", "name": "$tagIds" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "AddTagsToFilesError", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownFiles", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownFiles", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownFiles" }] } }] } }] }, "sourceText": "mutation AddTagsToFiles($fileIds: [UUID!]!, $tagIds: [UUID!]!) { error: addTagsToFiles(fileIds: $fileIds, tagIds: $tagIds) { __typename ... on ErrorUnknownTags { ...ErrorUnknownTags } ... on ErrorUnknownFiles { ...ErrorUnknownFiles } }}", "hash": "5668170990172862977" }, "AddUserToGroup": { "name": "AddUserToGroup", "type": "MUTATION", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$userId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "addUserToGroup", "alias": "error", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "userId": { "name": "userId", "value": { "_type": "ref", "name": "$userId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "ErrorGroupNotFoundOrErrorNotFound", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation AddUserToGroup($groupId: UUID!, $userId: UUID!) { error: addUserToGroup(groupId: $groupId, userId: $userId) { __typename }}", "hash": "1107461086593108826" }, "ChangePassword": { "name": "ChangePassword", "type": "MUTATION", "parameters": { "$newPassword": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$oldPassword": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "changePassword", "alias": "error", "arguments": { "newPassword": { "name": "newPassword", "value": { "_type": "ref", "name": "$newPassword" } }, "oldPassword": { "name": "oldPassword", "value": { "_type": "ref", "name": "$oldPassword" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "ErrorInvalidCredentials", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation ChangePassword($oldPassword: String!, $newPassword: String!) { error: changePassword( oldPassword: $oldPassword, newPassword: $newPassword ) { __typename }}", "hash": "17508126690552594218" }, "CommitMultipartFileSession": { "name": "CommitMultipartFileSession", "type": "MUTATION", "parameters": { "$sessionId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "commitMultipartFileSession", "alias": "commitMultipartFileSession", "arguments": { "sessionId": { "name": "sessionId", "value": { "_type": "ref", "name": "$sessionId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "CommitMultipartFileSessionResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "File", "spec": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "mutation CommitMultipartFileSession($sessionId: UUID!) { commitMultipartFileSession(sessionId: $sessionId) { __typename ... on File { id } }}", "hash": "2900761415111458410" }, "CommitPutFileSession": { "name": "CommitPutFileSession", "type": "MUTATION", "parameters": { "$sessionId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "commitPutFileSession", "alias": "commitPutFileSession", "arguments": { "sessionId": { "name": "sessionId", "value": { "_type": "ref", "name": "$sessionId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "CommitPutFileSessionResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "File", "spec": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "FieldSelection", "name": "id", "alias": "id", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "mutation CommitPutFileSession($sessionId: UUID!) { commitPutFileSession(sessionId: $sessionId) { __typename ... on File { id } }}", "hash": "3096493094646509676" }, "ConfirmOTPCode": { "name": "ConfirmOTPCode", "type": "MUTATION", "parameters": { "$code": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$email": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "confirmOTPCode", "alias": "confirmOTPCode", "arguments": { "code": { "name": "code", "value": { "_type": "ref", "name": "$code" } }, "email": { "name": "email", "value": { "_type": "ref", "name": "$email" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "ConfirmOTPCodeResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "OTPToken", "spec": { "_type": "ObjectFragmentSpec", "name": "OTPToken", "selections": [{ "_type": "FieldSelection", "name": "token", "alias": "token", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "mutation ConfirmOTPCode($email: String!, $code: String!) { confirmOTPCode(email: $email, code: $code) { __typename ... on OTPToken { token } }}", "hash": "16584088807540041793" }, "ConfirmUser": { "name": "ConfirmUser", "type": "MUTATION", "parameters": { "$password": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$token": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "confirmUser", "alias": "confirmUser", "arguments": { "password": { "name": "password", "value": { "_type": "ref", "name": "$password" } }, "token": { "name": "token", "value": { "_type": "ref", "name": "$token" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "ConfirmUserError", "selections": [{ "_type": "TypenameField", "alias": "error" }] } }] }, "sourceText": "mutation ConfirmUser($token: String!, $password: String!) { confirmUser(token: $token, password: $password) { error: __typename }}", "hash": "3855776223462829726" }, "CreateGroup": { "name": "CreateGroup", "type": "MUTATION", "parameters": { "$groupIn": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GroupIn", "$ref": "#/server/inputs/GroupIn" } } }, "$userIds": { "nullable": false, "spec": { "_type": "array", "nullable": false, "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "createGroup", "alias": "error", "arguments": { "groupIn": { "name": "groupIn", "value": { "_type": "ref", "name": "$groupIn" } }, "userIds": { "name": "userIds", "value": { "_type": "ref", "name": "$userIds" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "CreateGroupError", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "FieldSelection", "name": "tagIds", "alias": "tagIds", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "mutation CreateGroup($groupIn: GroupIn!, $userIds: [UUID!]!) { error: createGroup(groupIn: $groupIn, userIds: $userIds) { __typename ... on ErrorUnknownTags { tagIds } }}", "hash": "4841581803563186200" }, "CreateMultipartFileSession": { "name": "CreateMultipartFileSession", "type": "MUTATION", "parameters": { "$fileIn": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "MultipartUploadFileIn", "$ref": "#/server/inputs/MultipartUploadFileIn" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "createMultipartFileSession", "alias": "session", "arguments": { "fileIn": { "name": "fileIn", "value": { "_type": "ref", "name": "$fileIn" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "CreateMultipartFileSessionResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "MultipartUploadSession", "spec": { "_type": "ObjectFragmentSpec", "name": "MultipartUploadSession", "selections": [{ "_type": "SpreadSelection", "fragment": "MultipartUploadSession" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }] } }] }, "sourceText": "mutation CreateMultipartFileSession($fileIn: MultipartUploadFileIn!) { session: createMultipartFileSession(fileIn: $fileIn) { __typename ... on MultipartUploadSession { ...MultipartUploadSession } ... on ErrorUnknownTags { ...ErrorUnknownTags } }}", "hash": "2894361690045734849" }, "CreatePutFileSession": { "name": "CreatePutFileSession", "type": "MUTATION", "parameters": { "$fileIn": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "PutUploadFileIn", "$ref": "#/server/inputs/PutUploadFileIn" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "createPutFileSession", "alias": "session", "arguments": { "fileIn": { "name": "fileIn", "value": { "_type": "ref", "name": "$fileIn" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "CreatePutFileSessionResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "PutUploadSession", "spec": { "_type": "ObjectFragmentSpec", "name": "PutUploadSession", "selections": [{ "_type": "SpreadSelection", "fragment": "PutUploadSession" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }] } }] }, "sourceText": "mutation CreatePutFileSession($fileIn: PutUploadFileIn!) { session: createPutFileSession(fileIn: $fileIn) { __typename ... on PutUploadSession { ...PutUploadSession } ... on ErrorUnknownTags { ...ErrorUnknownTags } }}", "hash": "4468124376953834088" }, "CreateTag": { "name": "CreateTag", "type": "MUTATION", "parameters": { "$tag": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "TagIn", "$ref": "#/server/inputs/TagIn" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "createTag", "alias": "error", "arguments": { "tag": { "name": "tag", "value": { "_type": "ref", "name": "$tag" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "CreateTagError", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation CreateTag($tag: TagIn!) { error: createTag(tag: $tag) { __typename }}", "hash": "16721276113563811495" }, "CreateUser": { "name": "CreateUser", "type": "MUTATION", "parameters": { "$userIn": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "UserIn", "$ref": "#/server/inputs/UserIn" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "createUser", "alias": "createUser", "arguments": { "userIn": { "name": "userIn", "value": { "_type": "ref", "name": "$userIn" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "CreateUserError", "selections": [{ "_type": "TypenameField", "alias": "error" }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownGroups", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownGroups", "selections": [{ "_type": "FieldSelection", "name": "groupIds", "alias": "groupIds", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "mutation CreateUser($userIn: UserIn!) { createUser(userIn: $userIn) { error: __typename ... on ErrorUnknownGroups { groupIds } }}", "hash": "1973098945831569781" }, "DecideOnDownloadRequest": { "name": "DecideOnDownloadRequest", "type": "MUTATION", "parameters": { "$allowed": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Boolean" } } }, "$fileId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$userId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "decideOnDownloadRequest", "alias": "error", "arguments": { "allowed": { "name": "allowed", "value": { "_type": "ref", "name": "$allowed" } }, "fileId": { "name": "fileId", "value": { "_type": "ref", "name": "$fileId" } }, "userId": { "name": "userId", "value": { "_type": "ref", "name": "$userId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "DecideOnDownloadRequestError", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation DecideOnDownloadRequest( $fileId: UUID!, $userId: UUID!, $allowed: Boolean!,) { error: decideOnDownloadRequest( fileId: $fileId, userId: $userId, allowed: $allowed, ) { __typename }}", "hash": "16495707941150846866" }, "DeleteFile": { "name": "DeleteFile", "type": "MUTATION", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "deleteFile", "alias": "error", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "DeleteFileError", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation DeleteFile($id: UUID!) { error: deleteFile(id: $id) { __typename }}", "hash": "8257801023497099346" }, "DeleteGroup": { "name": "DeleteGroup", "type": "MUTATION", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "deleteGroup", "alias": "error", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "ErrorGroupNotFound", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation DeleteGroup($id: UUID!) { error: deleteGroup(id: $id) { __typename }}", "hash": "9110566923507687854" }, "DeletePendingUser": { "name": "DeletePendingUser", "type": "MUTATION", "parameters": { "$email": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "deletePendingUser", "alias": "error", "arguments": { "email": { "name": "email", "value": { "_type": "ref", "name": "$email" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "ErrorNotFound", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation DeletePendingUser($email: String!) { error: deletePendingUser(email: $email) { __typename }}", "hash": "9139427892018657136" }, "DeleteTag": { "name": "DeleteTag", "type": "MUTATION", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "deleteTag", "alias": "error", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "ErrorNotFound", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation DeleteTag($id: UUID!) { error: deleteTag(id: $id) { __typename }}", "hash": "10717769094141511882" }, "DeleteUser": { "name": "DeleteUser", "type": "MUTATION", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "deleteUser", "alias": "error", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "ErrorNotFound", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation DeleteUser($id: UUID!) { error: deleteUser(id: $id) { __typename }}", "hash": "10181949277993652069" }, "EditGroup": { "name": "EditGroup", "type": "MUTATION", "parameters": { "$groupIn": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GroupIn", "$ref": "#/server/inputs/GroupIn" } } }, "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "editGroup", "alias": "error", "arguments": { "groupIn": { "name": "groupIn", "value": { "_type": "ref", "name": "$groupIn" } }, "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "EditGroupError", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "FieldSelection", "name": "tagIds", "alias": "tagIds", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "mutation EditGroup($id: UUID!, $groupIn: GroupIn!) { error: editGroup(id: $id, groupIn: $groupIn) { __typename ... on ErrorUnknownTags { tagIds } }}", "hash": "6995195545522677055" }, "EditTag": { "name": "EditTag", "type": "MUTATION", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$tag": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "TagIn", "$ref": "#/server/inputs/TagIn" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "editTag", "alias": "error", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } }, "tag": { "name": "tag", "value": { "_type": "ref", "name": "$tag" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "EditTagError", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation EditTag($id: UUID!, $tag: TagIn!) { error: editTag(id: $id, tag: $tag) { __typename }}", "hash": "13411889526298113356" }, "GetDealInfo": { "name": "GetDealInfo", "type": "QUERY", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getDealInfo", "alias": "info", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Deal", "selections": [{ "_type": "SpreadSelection", "fragment": "Deal" }] } }] }, "sourceText": "query GetDealInfo($id: UUID!){ info: getDealInfo(id: $id) { ...Deal }}", "hash": "1428949861843738232" }, "GetDeals": { "name": "GetDeals", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getDeals", "alias": "deals", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }] }, "sourceText": "query GetDeals($skip: Int!, $limit: Int!, $query: String){ deals: getDeals(skip: $skip, limit: $limit, query: $query) { ...SmallTag }}", "hash": "9416407972019189485" }, "GetEvents": { "name": "GetEvents", "type": "QUERY", "parameters": { "$dateRange": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "DateRange", "$ref": "#/server/inputs/DateRange" } } }, "$filters": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "EventFiltersIn", "$ref": "#/server/inputs/EventFiltersIn" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getEvents", "alias": "events", "arguments": { "dateRange": { "name": "dateRange", "value": { "_type": "ref", "name": "$dateRange" } }, "filters": { "name": "filters", "value": { "_type": "ref", "name": "$filters" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetEventsResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "EventsList", "spec": { "_type": "ObjectFragmentSpec", "name": "EventsList", "selections": [{ "_type": "FieldSelection", "name": "events", "alias": "events", "arguments": {}, "selection": { "_type": "UnionFragmentSpec", "name": "Event", "selections": [{ "_type": "SpreadSelection", "fragment": "Event" }] } }] } }] } }] }, "sourceText": "query GetEvents( $skip: Int!, $limit: Int!, $dateRange: DateRange!, $filters: EventFiltersIn!, $query: String) { events: getEvents( skip: $skip, limit: $limit, dateRange: $dateRange, filters: $filters, query: $query, ) { __typename ... on EventsList { events { ...Event } } }}", "hash": "3941586759207214873" }, "GetFavouriteTags": { "name": "GetFavouriteTags", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getFavouriteTags", "alias": "data", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] }, "sourceText": "query GetFavouriteTags($skip: Int!, $limit: Int!) { data: getFavouriteTags(skip: $skip, limit: $limit) { ...Tag }}", "hash": "11243988681564421206" }, "GetFileURL": { "name": "GetFileURL", "type": "QUERY", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getFileURL", "alias": "url", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetFileURLResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "UrlObject", "spec": { "_type": "ObjectFragmentSpec", "name": "UrlObject", "selections": [{ "_type": "FieldSelection", "name": "value", "alias": "value", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "query GetFileURL($id: UUID!) { url: getFileURL(id: $id) { __typename ... on UrlObject { value } }}", "hash": "3618559389732264511" }, "GetFiles": { "name": "GetFiles", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "FileSortBy", "$ref": "#/server/inputs/FileSortBy" } } }, "$tagIds": { "nullable": false, "spec": { "_type": "array", "nullable": false, "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getFiles", "alias": "data", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } }, "tagIds": { "name": "tagIds", "value": { "_type": "ref", "name": "$tagIds" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetFilesResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "SearchFileList", "spec": { "_type": "ObjectFragmentSpec", "name": "SearchFileList", "selections": [{ "_type": "SpreadSelection", "fragment": "SearchFileList" }] } }] } }] }, "sourceText": "query GetFiles( $skip: Int!, $limit: Int!, $tagIds: [UUID!]!, $sortBy: FileSortBy) { data: getFiles( skip: $skip, limit: $limit, tagIds: $tagIds, sortBy: $sortBy ) { __typename ... on ErrorUnknownTags { ...ErrorUnknownTags } ... on SearchFileList { ...SearchFileList } }}", "hash": "11784545539341565672" }, "GetFilesCount": { "name": "GetFilesCount", "type": "QUERY", "parameters": { "$tagIds": { "nullable": false, "spec": { "_type": "array", "nullable": false, "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getFilesCount", "alias": "count", "arguments": { "tagIds": { "name": "tagIds", "value": { "_type": "ref", "name": "$tagIds" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "IntObjectOrErrorUnknownTags", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "IntObject", "spec": { "_type": "ObjectFragmentSpec", "name": "IntObject", "selections": [{ "_type": "SpreadSelection", "fragment": "IntObject" }] } }] } }] }, "sourceText": "query GetFilesCount($tagIds: [UUID!]!) { count: getFilesCount(tagIds: $tagIds) { __typename ... on ErrorUnknownTags { ...ErrorUnknownTags } ... on IntObject { ...IntObject } }}", "hash": "671336904096262462" }, "GetGroupTags": { "name": "GetGroupTags", "type": "QUERY", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupTags", "alias": "tags", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupTagsResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "TagList", "spec": { "_type": "ObjectFragmentSpec", "name": "TagList", "selections": [{ "_type": "FieldSelection", "name": "list", "alias": "list", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] } }] } }] }, "sourceText": "query GetGroupTags($id: UUID!, $skip: Int!, $limit: Int!) { tags: getGroupTags(id: $id, skip: $skip, limit: $limit) { __typename ... on TagList { list { ...Tag } } }}", "hash": "5725996293441587823" }, "GetGroupUsers": { "name": "GetGroupUsers", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetGroupUsersSortBy", "$ref": "#/server/inputs/GetGroupUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsers", "alias": "users", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "UsersList", "spec": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersList" }] } }] } }] }, "sourceText": "query GetGroupUsers( $groupId: UUID!, $skip: Int!, $limit: Int!, $sortBy: GetGroupUsersSortBy!) { users: getGroupUsers( groupId: $groupId, skip: $skip, limit: $limit, sortBy: $sortBy ) { __typename ... on UsersList { ...UsersList } }}", "hash": "1792498539540203309" }, "GetGroupUsersAndTotal": { "name": "GetGroupUsersAndTotal", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetGroupUsersSortBy", "$ref": "#/server/inputs/GetGroupUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsers", "alias": "users", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "UsersList", "spec": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersList" }] } }] } }, { "_type": "FieldSelection", "name": "getGroupUsersTotal", "alias": "total", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersTotalResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "IntObject", "spec": { "_type": "ObjectFragmentSpec", "name": "IntObject", "selections": [{ "_type": "FieldSelection", "name": "value", "alias": "value", "arguments": {}, "selection": null }] } }] } }, { "_type": "FieldSelection", "name": "retrieveGroup", "alias": "group", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$groupId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "RetrieveGroupResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "Group", "spec": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "query GetGroupUsersAndTotal( $groupId: UUID!, $skip: Int!, $limit: Int!, $sortBy: GetGroupUsersSortBy!) { users: getGroupUsers( groupId: $groupId, skip: $skip, limit: $limit, sortBy: $sortBy ) { __typename ... on UsersList { ...UsersList } } total: getGroupUsersTotal(groupId: $groupId) { __typename ... on IntObject { value } } group: retrieveGroup(id: $groupId) { __typename ... on Group { name } }}", "hash": "8374363291036541053" }, "GetGroupUsersAndUsers": { "name": "GetGroupUsersAndUsers", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetUsersSortBy", "$ref": "#/server/inputs/GetUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsersAndUsers", "alias": "users", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersAndUsersResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "GroupUserList", "spec": { "_type": "ObjectFragmentSpec", "name": "GroupUserList", "selections": [{ "_type": "SpreadSelection", "fragment": "GroupUserList" }] } }] } }] }, "sourceText": "query GetGroupUsersAndUsers( $skip: Int!, $limit: Int!, $groupId: UUID!, $sortBy: GetUsersSortBy!, $query: String) { users: getGroupUsersAndUsers( skip: $skip, limit: $limit, sortBy: $sortBy, groupId: $groupId, query: $query ) { __typename ... on GroupUserList { ...GroupUserList } }}", "hash": "3656740496380671641" }, "GetGroupUsersAndUsersAndTotal": { "name": "GetGroupUsersAndUsersAndTotal", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetUsersSortBy", "$ref": "#/server/inputs/GetUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsersAndUsers", "alias": "users", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersAndUsersResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "GroupUserList", "spec": { "_type": "ObjectFragmentSpec", "name": "GroupUserList", "selections": [{ "_type": "SpreadSelection", "fragment": "GroupUserList" }] } }] } }, { "_type": "FieldSelection", "name": "getUsersTotal", "alias": "total", "arguments": { "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } } }, "selection": null }] }, "sourceText": "query GetGroupUsersAndUsersAndTotal( $skip: Int!, $limit: Int!, $groupId: UUID!, $sortBy: GetUsersSortBy!, $query: String) { users: getGroupUsersAndUsers( skip: $skip, limit: $limit, sortBy: $sortBy, groupId: $groupId, query: $query ) { __typename ... on GroupUserList { ...GroupUserList } } total: getUsersTotal(query: $query)}", "hash": "4869901222184919707" }, "GetGroupUsersTotal": { "name": "GetGroupUsersTotal", "type": "QUERY", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupUsersTotal", "alias": "total", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupUsersTotalResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "IntObject", "spec": { "_type": "ObjectFragmentSpec", "name": "IntObject", "selections": [{ "_type": "FieldSelection", "name": "value", "alias": "value", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "query GetGroupUsersTotal($groupId: UUID!) { total: getGroupUsersTotal(groupId: $groupId) { __typename ... on IntObject { value } }}", "hash": "9225210424499568333" }, "GetGroups": { "name": "GetGroups", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetGroupsSortBy", "$ref": "#/server/inputs/GetGroupsSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroups", "alias": "groups", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "SpreadSelection", "fragment": "Group" }] } }] }, "sourceText": "query GetGroups($skip: Int!, $limit: Int!, $sortBy: GetGroupsSortBy!) { groups: getGroups(skip: $skip, limit: $limit, sortBy: $sortBy) { ...Group }}", "hash": "13571923401085809595" }, "GetGroupsAndTotal": { "name": "GetGroupsAndTotal", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetGroupsSortBy", "$ref": "#/server/inputs/GetGroupsSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroups", "alias": "groups", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "SpreadSelection", "fragment": "Group" }] } }, { "_type": "FieldSelection", "name": "getGroupsTotal", "alias": "total", "arguments": {}, "selection": null }] }, "sourceText": "query GetGroupsAndTotal($skip: Int!, $limit: Int!, $sortBy: GetGroupsSortBy!) { groups: getGroups(skip: $skip, limit: $limit, sortBy: $sortBy) { ...Group } total: getGroupsTotal}", "hash": "7900334881871762468" }, "GetGroupsTotal": { "name": "GetGroupsTotal", "type": "QUERY", "parameters": {}, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getGroupsTotal", "alias": "total", "arguments": {}, "selection": null }] }, "sourceText": "query GetGroupsTotal { total: getGroupsTotal}", "hash": "7734335693541431410" }, "GetMe": { "name": "GetMe", "type": "QUERY", "parameters": {}, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getMe", "alias": "getMe", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "User", "selections": [{ "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "email", "alias": "email", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "tenGroups", "alias": "tenGroups", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "FieldSelection", "name": "name", "alias": "name", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "query GetMe { getMe { name email tenGroups { name } }}", "hash": "8811432235622240804" }, "GetMyTags": { "name": "GetMyTags", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getMyTags", "alias": "tags", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] }, "sourceText": "query GetMyTags($skip: Int!, $limit: Int!) { tags: getMyTags( skip: $skip, limit: $limit ) { ...Tag }}", "hash": "13762129596984089903" }, "GetMyTagsCount": { "name": "GetMyTagsCount", "type": "QUERY", "parameters": {}, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getMyTagsCount", "alias": "count", "arguments": {}, "selection": null }] }, "sourceText": "query GetMyTagsCount { count: getMyTagsCount}", "hash": "15186007642456881730" }, "GetNextMultipartUploadUrls": { "name": "GetNextMultipartUploadUrls", "type": "QUERY", "parameters": { "$lastPart": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sessionId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getNextMultipartUploadUrls", "alias": "getNextMultipartUploadUrls", "arguments": { "lastPart": { "name": "lastPart", "value": { "_type": "ref", "name": "$lastPart" } }, "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "sessionId": { "name": "sessionId", "value": { "_type": "ref", "name": "$sessionId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetNextMultipartUploadUrlsResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "UploadUrlList", "spec": { "_type": "ObjectFragmentSpec", "name": "UploadUrlList", "selections": [{ "_type": "FieldSelection", "name": "urls", "alias": "urls", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "UploadUrl", "selections": [{ "_type": "SpreadSelection", "fragment": "UploadUrl" }] } }] } }] } }] }, "sourceText": "query GetNextMultipartUploadUrls( $sessionId: UUID!, $lastPart: Int!, $limit: Int!) { getNextMultipartUploadUrls( sessionId: $sessionId, lastPart: $lastPart, limit: $limit ) { __typename ... on UploadUrlList { urls { ...UploadUrl } } }}", "hash": "9093012099279676104" }, "GetPathToTag": { "name": "GetPathToTag", "type": "QUERY", "parameters": { "$tagId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getPathToTag", "alias": "getPathToTag", "arguments": { "tagId": { "name": "tagId", "value": { "_type": "ref", "name": "$tagId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetPathToTagResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "StringList", "spec": { "_type": "ObjectFragmentSpec", "name": "StringList", "selections": [{ "_type": "FieldSelection", "name": "values", "alias": "values", "arguments": {}, "selection": null }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }] } }] }, "sourceText": "query GetPathToTag($tagId: UUID!) { getPathToTag(tagId: $tagId) { __typename ... on StringList { values } ... on ErrorUnknownTags { ...ErrorUnknownTags } }}", "hash": "14896510105507595889" }, "GetPendingUsers": { "name": "GetPendingUsers", "type": "QUERY", "parameters": {}, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getPendingUsers", "alias": "getPendingUsers", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "PendingUserList", "selections": [{ "_type": "FieldSelection", "name": "users", "alias": "users", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "PendingUser", "selections": [{ "_type": "SpreadSelection", "fragment": "PendingUser" }] } }] } }] }, "sourceText": "query GetPendingUsers { getPendingUsers { users { ...PendingUser } }}", "hash": "6870026420132680667" }, "GetPopularTags": { "name": "GetPopularTags", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getPopularTags", "alias": "data", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] }, "sourceText": "query GetPopularTags($skip: Int!, $limit: Int!) { data: getPopularTags( skip: $skip, limit: $limit ) { ...Tag }}", "hash": "3149200908746274573" }, "GetTagChildren": { "name": "GetTagChildren", "type": "QUERY", "parameters": { "$tagId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getTagChildren", "alias": "tags", "arguments": { "tagId": { "name": "tagId", "value": { "_type": "ref", "name": "$tagId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetTagsResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "TagList", "spec": { "_type": "ObjectFragmentSpec", "name": "TagList", "selections": [{ "_type": "FieldSelection", "name": "list", "alias": "list", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] } }] } }] }, "sourceText": "query GetTagChildren($tagId: UUID!) { tags: getTagChildren(tagId: $tagId) { __typename ... on TagList { list { ...Tag } } }}", "hash": "6233163198160899973" }, "GetTagInfo": { "name": "GetTagInfo", "type": "QUERY", "parameters": { "$tagId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getTagInfo", "alias": "info", "arguments": { "tagId": { "name": "tagId", "value": { "_type": "ref", "name": "$tagId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetTagInfoResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "TagInfo", "spec": { "_type": "ObjectFragmentSpec", "name": "TagInfo", "selections": [{ "_type": "FieldSelection", "name": "tag", "alias": "tag", "arguments": {}, "selection": null }, { "_type": "FieldSelection", "name": "parentTag", "alias": "parentTag", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] } }] } }] }, "sourceText": "query GetTagInfo($tagId: UUID!) { info: getTagInfo(tagId: $tagId) { __typename ... on TagInfo { tag parentTag { ...Tag } } }}", "hash": "8429879794093591944" }, "GetTags": { "name": "GetTags", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$parentTagId": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getTags", "alias": "data", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "parentTagId": { "name": "parentTagId", "value": { "_type": "ref", "name": "$parentTagId" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetTagsResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "TagList", "spec": { "_type": "ObjectFragmentSpec", "name": "TagList", "selections": [{ "_type": "SpreadSelection", "fragment": "TagList" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }] } }] }, "sourceText": "query GetTags($skip: Int!, $limit: Int!, $parentTagId: UUID, $query: String) { data: getTags( skip: $skip, limit: $limit, parentTagId: $parentTagId, query: $query ) { __typename ... on TagList { ...TagList } ... on ErrorUnknownTags { ...ErrorUnknownTags } }}", "hash": "8029794585152486870" }, "GetTagsCount": { "name": "GetTagsCount", "type": "QUERY", "parameters": { "$parentTag": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getTagsCount", "alias": "data", "arguments": { "parentTag": { "name": "parentTag", "value": { "_type": "ref", "name": "$parentTag" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "IntObjectOrErrorUnknownTags", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "IntObject", "spec": { "_type": "ObjectFragmentSpec", "name": "IntObject", "selections": [{ "_type": "FieldSelection", "name": "value", "alias": "value", "arguments": {}, "selection": null }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }] } }] }, "sourceText": "query GetTagsCount($parentTag: String, $query: String) { data: getTagsCount( parentTag: $parentTag, query: $query ) { __typename ... on IntObject { value } ... on ErrorUnknownTags { ...ErrorUnknownTags } }}", "hash": "9203785367935208008" }, "GetTimestampOfLatestDeal": { "name": "GetTimestampOfLatestDeal", "type": "QUERY", "parameters": {}, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getTimestampOfLatestDeal", "alias": "getTimestampOfLatestDeal", "arguments": {}, "selection": null }] }, "sourceText": "query GetTimestampOfLatestDeal { getTimestampOfLatestDeal}", "hash": "17939989561600861895" }, "GetUploadedFiles": { "name": "GetUploadedFiles", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "FileSortBy", "$ref": "#/server/inputs/FileSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUploadedFiles", "alias": "data", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetFilesResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "SearchFileList", "spec": { "_type": "ObjectFragmentSpec", "name": "SearchFileList", "selections": [{ "_type": "SpreadSelection", "fragment": "SearchFileList" }] } }] } }] }, "sourceText": "query GetUploadedFiles( $skip: Int!, $limit: Int!, $sortBy: FileSortBy) { data: getUploadedFiles( skip: $skip, limit: $limit, sortBy: $sortBy ) { __typename ... on ErrorUnknownTags { ...ErrorUnknownTags } ... on SearchFileList { ...SearchFileList } }}", "hash": "6991220225272933069" }, "GetUploadedFilesCount": { "name": "GetUploadedFilesCount", "type": "QUERY", "parameters": {}, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUploadedFilesCount", "alias": "count", "arguments": {}, "selection": { "_type": "UnionFragmentSpec", "name": "IntObjectOrErrorUnknownTags", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }, { "_type": "ObjectConditionalSpreadSelection", "object": "IntObject", "spec": { "_type": "ObjectFragmentSpec", "name": "IntObject", "selections": [{ "_type": "SpreadSelection", "fragment": "IntObject" }] } }] } }] }, "sourceText": "query GetUploadedFilesCount { count: getUploadedFilesCount { __typename ... on ErrorUnknownTags { ...ErrorUnknownTags } ... on IntObject { ...IntObject } }}", "hash": "3030892249575758739" }, "GetUsers": { "name": "GetUsers", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetUsersSortBy", "$ref": "#/server/inputs/GetUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUsers", "alias": "users", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersList" }] } }] }, "sourceText": "query GetUsers( $skip: Int!, $limit: Int!, $sortBy: GetUsersSortBy!, $query: String) { users: getUsers( skip: $skip, limit: $limit, sortBy: $sortBy, query: $query ) { ...UsersList }}", "hash": "14379953529622046072" }, "GetUsersTags": { "name": "GetUsersTags", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "UsersTagSortBy", "$ref": "#/server/inputs/UsersTagSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUsersTags", "alias": "tags", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "UsersTag", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersTag" }] } }] }, "sourceText": "query GetUsersTags( $skip: Int!, $limit: Int!, $query: String, $sortBy: UsersTagSortBy) { tags: getUsersTags( skip: $skip, limit: $limit, query: $query, sortBy: $sortBy ) { ...UsersTag }}", "hash": "1166324334253328963" }, "GetUsersTagsAndCount": { "name": "GetUsersTagsAndCount", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUsersTags", "alias": "tags", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "UsersTag", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersTag" }] } }, { "_type": "FieldSelection", "name": "getUsersTagsCount", "alias": "count", "arguments": { "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } } }, "selection": null }] }, "sourceText": "query GetUsersTagsAndCount( $skip: Int!, $limit: Int!, $query: String) { tags: getUsersTags( skip: $skip, limit: $limit, query: $query ) { ...UsersTag } count: getUsersTagsCount(query: $query)}", "hash": "7493139076191002845" }, "GetUsersTagsCount": { "name": "GetUsersTagsCount", "type": "QUERY", "parameters": { "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUsersTagsCount", "alias": "count", "arguments": { "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } } }, "selection": null }] }, "sourceText": "query GetUsersTagsCount($query: String) { count: getUsersTagsCount(query: $query)}", "hash": "9168800010562902080" }, "GetUsersTotal": { "name": "GetUsersTotal", "type": "QUERY", "parameters": { "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUsersTotal", "alias": "getUsersTotal", "arguments": { "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } } }, "selection": null }] }, "sourceText": "query GetUsersTotal($query: String) { getUsersTotal(query: $query)}", "hash": "5428716508742855223" }, "GetUsersTotalAndUsers": { "name": "GetUsersTotalAndUsers", "type": "QUERY", "parameters": { "$limit": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$query": { "nullable": true, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$skip": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Int" } } }, "$sortBy": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "InputType", "name": "GetUsersSortBy", "$ref": "#/server/inputs/GetUsersSortBy" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "getUsersTotal", "alias": "total", "arguments": { "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } } }, "selection": null }, { "_type": "FieldSelection", "name": "getUsers", "alias": "users", "arguments": { "limit": { "name": "limit", "value": { "_type": "ref", "name": "$limit" } }, "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } }, "skip": { "name": "skip", "value": { "_type": "ref", "name": "$skip" } }, "sortBy": { "name": "sortBy", "value": { "_type": "ref", "name": "$sortBy" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "UsersList", "selections": [{ "_type": "SpreadSelection", "fragment": "UsersList" }] } }] }, "sourceText": "query GetUsersTotalAndUsers( $skip: Int!, $limit: Int!, $sortBy: GetUsersSortBy!, $query: String) { total: getUsersTotal(query: $query) users: getUsers( skip: $skip, limit: $limit, sortBy: $sortBy, query: $query ) { ...UsersList }}", "hash": "14951699237626581254" }, "IsAllowedToDownload": { "name": "IsAllowedToDownload", "type": "QUERY", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "isAllowedToDownload", "alias": "allowed", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "IsAllowedToDownloadResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "BooleanObject", "spec": { "_type": "ObjectFragmentSpec", "name": "BooleanObject", "selections": [{ "_type": "FieldSelection", "name": "value", "alias": "value", "arguments": {}, "selection": null }] } }] } }] }, "sourceText": "query IsAllowedToDownload($id: UUID!) { allowed: isAllowedToDownload(id: $id) { __typename ... on BooleanObject { value } }}", "hash": "10298951714648703422" }, "IsTagExists": { "name": "IsTagExists", "type": "QUERY", "parameters": { "$tag": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "isTagExists", "alias": "isTagExists", "arguments": { "tag": { "name": "tag", "value": { "_type": "ref", "name": "$tag" } } }, "selection": null }] }, "sourceText": "query IsTagExists($tag: String!) { isTagExists(tag: $tag)}", "hash": "5106723768658912714" }, "Login": { "name": "Login", "type": "MUTATION", "parameters": { "$email": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$password": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "login", "alias": "login", "arguments": { "email": { "name": "email", "value": { "_type": "ref", "name": "$email" } }, "password": { "name": "password", "value": { "_type": "ref", "name": "$password" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "ErrorInvalidCredentials", "selections": [{ "_type": "TypenameField", "alias": "error" }] } }] }, "sourceText": "mutation Login($email: String!, $password: String!) { login(email: $email, password: $password) { error: __typename }}", "hash": "13644439562916378761" }, "Logout": { "name": "Logout", "type": "MUTATION", "parameters": {}, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "logout", "alias": "logout", "arguments": {}, "selection": null }] }, "sourceText": "mutation Logout { logout}", "hash": "11698600675074770911" }, "RemoveUserFromGroup": { "name": "RemoveUserFromGroup", "type": "MUTATION", "parameters": { "$groupId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$userId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "removeUserFromGroup", "alias": "error", "arguments": { "groupId": { "name": "groupId", "value": { "_type": "ref", "name": "$groupId" } }, "userId": { "name": "userId", "value": { "_type": "ref", "name": "$userId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "ErrorGroupNotFoundOrErrorNotFound", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation RemoveUserFromGroup($groupId: UUID!, $userId: UUID!) { error: removeUserFromGroup(groupId: $groupId, userId: $userId) { __typename }}", "hash": "2769321881245017820" }, "ResetPassword": { "name": "ResetPassword", "type": "MUTATION", "parameters": { "$newPassword": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$token": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "resetPassword", "alias": "error", "arguments": { "newPassword": { "name": "newPassword", "value": { "_type": "ref", "name": "$newPassword" } }, "token": { "name": "token", "value": { "_type": "ref", "name": "$token" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "ResetPasswordError", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation ResetPassword($token: String!, $newPassword: String!) { error: resetPassword(token: $token, newPassword: $newPassword) { __typename }}", "hash": "9173471044080170152" }, "RetrieveFile": { "name": "RetrieveFile", "type": "QUERY", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "retrieveFile", "alias": "file", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "RetrieveFileResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "SearchFile", "spec": { "_type": "ObjectFragmentSpec", "name": "SearchFile", "selections": [{ "_type": "FieldSelection", "name": "tags", "alias": "tags", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "SmallTag" }] } }, { "_type": "FieldSelection", "name": "file", "alias": "file", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "File", "selections": [{ "_type": "FieldSelection", "name": "filename", "alias": "filename", "arguments": {}, "selection": null }] } }] } }] } }] }, "sourceText": "query RetrieveFile($id: UUID!) { file: retrieveFile(id: $id) { __typename ... on SearchFile { tags { ...SmallTag } file { filename } } }}", "hash": "6849788407883253812" }, "RetrieveGroupAndTags": { "name": "RetrieveGroupAndTags", "type": "QUERY", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "retrieveGroup", "alias": "group", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "RetrieveGroupResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "Group", "spec": { "_type": "ObjectFragmentSpec", "name": "Group", "selections": [{ "_type": "SpreadSelection", "fragment": "Group" }] } }] } }, { "_type": "FieldSelection", "name": "getGroupTags", "alias": "tags", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } }, "limit": { "name": "limit", "value": { "_type": "literal", "value": 10000000 } }, "skip": { "name": "skip", "value": { "_type": "literal", "value": 0 } } }, "selection": { "_type": "UnionFragmentSpec", "name": "GetGroupTagsResponse", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "TagList", "spec": { "_type": "ObjectFragmentSpec", "name": "TagList", "selections": [{ "_type": "FieldSelection", "name": "list", "alias": "list", "arguments": {}, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] } }] } }] }, "sourceText": "query RetrieveGroupAndTags($id: UUID!) { group: retrieveGroup(id: $id) { __typename ... on Group { ...Group } } tags: getGroupTags(id: $id, skip: 0, limit: 10000000) { __typename ... on TagList { list { ...Tag } } }}", "hash": "7564880505050795352" }, "SearchTags": { "name": "SearchTags", "type": "QUERY", "parameters": { "$query": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Query", "selections": [{ "_type": "FieldSelection", "name": "searchTags", "alias": "tags", "arguments": { "query": { "name": "query", "value": { "_type": "ref", "name": "$query" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "Tag", "selections": [{ "_type": "SpreadSelection", "fragment": "Tag" }] } }] }, "sourceText": "query SearchTags($query: String!){ tags: searchTags(query: $query) { ...Tag }}", "hash": "2405141341034471509" }, "SendOTPCode": { "name": "SendOTPCode", "type": "MUTATION", "parameters": { "$email": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "sendOTPCode", "alias": "error", "arguments": { "email": { "name": "email", "value": { "_type": "ref", "name": "$email" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "ErrorInvalidCredentials", "selections": [{ "_type": "TypenameField", "alias": null }] } }] }, "sourceText": "mutation SendOTPCode($email: String!) { error: sendOTPCode(email: $email) { __typename }}", "hash": "8341023356681593097" }, "SetTagIsFavourite": { "name": "SetTagIsFavourite", "type": "MUTATION", "parameters": { "$isFavourite": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Boolean" } } }, "$tagId": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "setTagIsFavourite", "alias": "setTagIsFavourite", "arguments": { "isFavourite": { "name": "isFavourite", "value": { "_type": "ref", "name": "$isFavourite" } }, "tagId": { "name": "tagId", "value": { "_type": "ref", "name": "$tagId" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "ErrorAlreadyDoneOrUnknownTags", "selections": [{ "_type": "TypenameField", "alias": "error" }] } }] }, "sourceText": "mutation SetTagIsFavourite($tagId: UUID!, $isFavourite: Boolean!) { setTagIsFavourite(tagId: $tagId, isFavourite: $isFavourite) { error: __typename }}", "hash": "3161158731214547692" }, "UpdateFile": { "name": "UpdateFile", "type": "MUTATION", "parameters": { "$id": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "UUID" } } }, "$name": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "String" } } }, "$tagIds": { "nullable": false, "spec": { "_type": "array", "nullable": false, "type": { "_type": "Scalar", "name": "UUID" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "updateFile", "alias": "error", "arguments": { "id": { "name": "id", "value": { "_type": "ref", "name": "$id" } }, "name": { "name": "name", "value": { "_type": "ref", "name": "$name" } }, "tagIds": { "name": "tagIds", "value": { "_type": "ref", "name": "$tagIds" } } }, "selection": { "_type": "UnionFragmentSpec", "name": "UpdateFileError", "selections": [{ "_type": "TypenameField", "alias": null }, { "_type": "ObjectConditionalSpreadSelection", "object": "ErrorUnknownTags", "spec": { "_type": "ObjectFragmentSpec", "name": "ErrorUnknownTags", "selections": [{ "_type": "SpreadSelection", "fragment": "ErrorUnknownTags" }] } }] } }] }, "sourceText": "mutation UpdateFile($id: UUID!, $name: String!, $tagIds: [UUID!]!) { error: updateFile(id: $id, name: $name, tagIds: $tagIds) { __typename ... on ErrorUnknownTags { ...ErrorUnknownTags } }}", "hash": "6188777152924283913" }, "UploadDealTable": { "name": "UploadDealTable", "type": "MUTATION", "parameters": { "$file": { "nullable": false, "spec": { "_type": "literal", "type": { "_type": "Scalar", "name": "Upload" } } } }, "fragmentSpec": { "_type": "ObjectFragmentSpec", "name": "Mutation", "selections": [{ "_type": "FieldSelection", "name": "uploadDealTable", "alias": "error", "arguments": { "file": { "name": "file", "value": { "_type": "ref", "name": "$file" } } }, "selection": { "_type": "ObjectFragmentSpec", "name": "ErrorTableInvalid", "selections": [{ "_type": "FieldSelection", "name": "message", "alias": "message", "arguments": {}, "selection": null }] } }] }, "sourceText": "mutation UploadDealTable($file: Upload!) { error: uploadDealTable(file: $file) { message }}", "hash": "2856131315236178725" } }, "directives": {} }
package/schema/utils.js CHANGED
@@ -261,7 +261,8 @@ function buildOperation(type, object, fieldName, field) {
261
261
  name,
262
262
  parameters: buildParameters(field.spec),
263
263
  sourceText: buildOperationSourceText(type, object, name, fieldName, field.spec),
264
- fragmentSpec: buildFragmentSpecFromField(type, fieldName, field)
264
+ fragmentSpec: buildFragmentSpecFromField(type, fieldName, field),
265
+ hash: ''
265
266
  };
266
267
  }
267
268
  function buildOperations(server) {