UNPKG

appwrite

Version:

Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API

26 lines (25 loc) 593 B
import { Service } from '../service'; import { Client } from '../client'; export declare class Graphql extends Service { constructor(client: Client); /** * GraphQL endpoint * * Execute a GraphQL mutation. * * @param {object} query * @throws {AppwriteException} * @returns {Promise} */ query(query: object): Promise<{}>; /** * GraphQL endpoint * * Execute a GraphQL mutation. * * @param {object} query * @throws {AppwriteException} * @returns {Promise} */ mutation(query: object): Promise<{}>; }