node-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
27 lines (24 loc) • 573 B
text/typescript
import { Client } from '../client.mjs';
import '../models.mjs';
import '../query.mjs';
declare class Graphql {
client: Client;
constructor(client: Client);
/**
* Execute a GraphQL mutation.
*
* @param {object} query
* @throws {AppwriteException}
* @returns {Promise<{}>}
*/
query(query: object): Promise<{}>;
/**
* Execute a GraphQL mutation.
*
* @param {object} query
* @throws {AppwriteException}
* @returns {Promise<{}>}
*/
mutation(query: object): Promise<{}>;
}
export { Graphql };