{ "body": [ { "assertions": null, "end": 69, "importKind": { "type": "value" }, "source": { "end": 68, "start": 47, "type": "StringLiteral", "value": "./_generated/server" }, "specifiers": [ { "end": 29, "importKind": { "type": "value" }, "imported": { "end": 29, "name": "query", "start": 24, "type": "IdentifierName" }, "local": { "end": 29, "name": "query", "start": 24, "type": "BindingIdentifier" }, "start": 24, "type": "ImportSpecifier" }, { "end": 39, "importKind": { "type": "value" }, "imported": { "end": 39, "name": "mutation", "start": 31, "type": "IdentifierName" }, "local": { "end": 39, "name": "mutation", "start": 31, "type": "BindingIdentifier" }, "start": 31, "type": "ImportSpecifier" } ], "start": 15, "type": "ImportDeclaration" }, { "assertions": null, "end": 104, "importKind": { "type": "value" }, "source": { "end": 103, "start": 88, "type": "StringLiteral", "value": "convex/values" }, "specifiers": [ { "end": 80, "importKind": { "type": "value" }, "imported": { "end": 80, "name": "v", "start": 79, "type": "IdentifierName" }, "local": { "end": 80, "name": "v", "start": 79, "type": "BindingIdentifier" }, "start": 79, "type": "ImportSpecifier" } ], "start": 70, "type": "ImportDeclaration" }, { "declaration": { "declarations": [ { "definite": false, "end": 245, "id": { "kind": { "end": 125, "name": "create", "start": 119, "type": "BindingIdentifier" }, "optional": false, "type": "BindingPattern", "typeAnnotation": null }, "init": { "arguments": [ { "end": 244, "properties": [ { "computed": false, "end": 206, "init": null, "key": { "end": 144, "name": "args", "start": 140, "type": "IdentifierName" }, "kind": "init", "method": false, "shorthand": false, "start": 140, "type": "ObjectProperty", "value": { "end": 206, "properties": [ { "computed": false, "end": 173, "init": null, "key": { "end": 161, "name": "title", "start": 156, "type": "IdentifierName" }, "kind": "init", "method": false, "shorthand": false, "start": 156, "type": "ObjectProperty", "value": { "arguments": [], "callee": { "end": 171, "object": { "end": 164, "name": "v", "start": 163, "type": "IdentifierReference" }, "optional": false, "property": { "end": 171, "name": "string", "start": 165, "type": "IdentifierName" }, "start": 163, "type": "StaticMemberExpression" }, "end": 173, "optional": false, "start": 163, "type": "CallExpression", "typeParameters": null } }, { "computed": false, "end": 199, "init": null, "key": { "end": 187, "name": "body", "start": 183, "type": "IdentifierName" }, "kind": "init", "method": false, "shorthand": false, "start": 183, "type": "ObjectProperty", "value": { "arguments": [], "callee": { "end": 197, "object": { "end": 190, "name": "v", "start": 189, "type": "IdentifierReference" }, "optional": false, "property": { "end": 197, "name": "string", "start": 191, "type": "IdentifierName" }, "start": 189, "type": "StaticMemberExpression" }, "end": 199, "optional": false, "start": 189, "type": "CallExpression", "typeParameters": null } } ], "start": 146, "trailing_comma": { "end": 199, "start": 199 }, "type": "ObjectExpression" } }, { "computed": false, "end": 241, "init": null, "key": { "end": 216, "name": "handler", "start": 209, "type": "IdentifierName" }, "kind": "init", "method": false, "shorthand": false, "start": 209, "type": "ObjectProperty", "value": { "async": true, "body": { "directives": [], "end": 241, "start": 239, "statements": [], "type": "FunctionBody" }, "expression": false, "generator": false, "params": { "end": 235, "items": [ { "accessibility": null, "decorators": [], "end": 228, "pattern": { "kind": { "end": 228, "name": "ctx", "start": 225, "type": "BindingIdentifier" }, "optional": false, "type": "BindingPattern", "typeAnnotation": null }, "readonly": false, "start": 225, "type": "FormalParameter" }, { "accessibility": null, "decorators": [], "end": 234, "pattern": { "kind": { "end": 234, "name": "args", "start": 230, "type": "BindingIdentifier" }, "optional": false, "type": "BindingPattern", "typeAnnotation": null }, "readonly": false, "start": 230, "type": "FormalParameter" } ], "kind": "ArrowFormalParameters", "rest": null, "start": 224, "type": "FormalParameters" }, "returnType": null, "span": { "end": 241, "start": 218 }, "type": "ArrowExpression", "typeParameters": null } } ], "start": 137, "trailing_comma": { "end": 241, "start": 241 }, "type": "ObjectExpression" } ], "callee": { "end": 136, "name": "mutation", "start": 128, "type": "IdentifierReference" }, "end": 245, "optional": false, "start": 128, "type": "CallExpression", "typeParameters": null }, "start": 119, "type": "VariableDeclarator" } ], "end": 246, "kind": "const", "modifiers": [], "start": 113, "type": "VariableDeclaration" }, "end": 246, "export_kind": { "type": "value" }, "source": null, "specifiers": [], "start": 106, "type": "ExportNamedDeclaration" }, { "declaration": { "declarations": [ { "definite": false, "end": 356, "id": { "kind": { "end": 265, "name": "find", "start": 261, "type": "BindingIdentifier" }, "optional": false, "type": "BindingPattern", "typeAnnotation": null }, "init": { "arguments": [ { "end": 355, "properties": [ { "computed": false, "end": 317, "init": null, "key": { "end": 281, "name": "args", "start": 277, "type": "IdentifierName" }, "kind": "init", "method": false, "shorthand": false, "start": 277, "type": "ObjectProperty", "value": { "end": 317, "properties": [ { "computed": false, "end": 310, "init": null, "key": { "end": 295, "name": "id", "start": 293, "type": "IdentifierName" }, "kind": "init", "method": false, "shorthand": false, "start": 293, "type": "ObjectProperty", "value": { "arguments": [ { "end": 309, "start": 302, "type": "StringLiteral", "value": "posts" } ], "callee": { "end": 301, "object": { "end": 298, "name": "v", "start": 297, "type": "IdentifierReference" }, "optional": false, "property": { "end": 301, "name": "id", "start": 299, "type": "IdentifierName" }, "start": 297, "type": "StaticMemberExpression" }, "end": 310, "optional": false, "start": 297, "type": "CallExpression", "typeParameters": null } } ], "start": 283, "trailing_comma": { "end": 310, "start": 310 }, "type": "ObjectExpression" } }, { "computed": false, "end": 352, "init": null, "key": { "end": 327, "name": "handler", "start": 320, "type": "IdentifierName" }, "kind": "init", "method": false, "shorthand": false, "start": 320, "type": "ObjectProperty", "value": { "async": true, "body": { "directives": [], "end": 352, "start": 350, "statements": [], "type": "FunctionBody" }, "expression": false, "generator": false, "params": { "end": 346, "items": [ { "accessibility": null, "decorators": [], "end": 339, "pattern": { "kind": { "end": 339, "name": "ctx", "start": 336, "type": "BindingIdentifier" }, "optional": false, "type": "BindingPattern", "typeAnnotation": null }, "readonly": false, "start": 336, "type": "FormalParameter" }, { "accessibility": null, "decorators": [], "end": 345, "pattern": { "kind": { "end": 345, "name": "args", "start": 341, "type": "BindingIdentifier" }, "optional": false, "type": "BindingPattern", "typeAnnotation": null }, "readonly": false, "start": 341, "type": "FormalParameter" } ], "kind": "ArrowFormalParameters", "rest": null, "start": 335, "type": "FormalParameters" }, "returnType": null, "span": { "end": 352, "start": 329 }, "type": "ArrowExpression", "typeParameters": null } } ], "start": 274, "trailing_comma": { "end": 352, "start": 352 }, "type": "ObjectExpression" } ], "callee": { "end": 273, "name": "query", "start": 268, "type": "IdentifierReference" }, "end": 356, "optional": false, "start": 268, "type": "CallExpression", "typeParameters": null }, "start": 261, "type": "VariableDeclarator" } ], "end": 357, "kind": "const", "modifiers": [], "start": 255, "type": "VariableDeclaration" }, "end": 357, "export_kind": { "type": "value" }, "source": null, "specifiers": [], "start": 248, "type": "ExportNamedDeclaration" } ], "directives": [], "end": 358, "hashbang": null, "sourceType": { "alwaysStrict": false, "language": { "typeScript": { "isDefinitionFile": false } }, "moduleKind": "module", "variant": "standard" }, "start": 0, "type": "Program" }