@graphprotocol/graph-cli
Version:
CLI for building for and deploying to The Graph
13 lines (12 loc) • 503 B
TypeScript
import type { DocumentNode } from 'graphql/language/index.js';
import SchemaCodeGenerator from './codegen/schema.js';
export default class Schema {
document: string;
ast: DocumentNode;
filename?: string | undefined;
constructor(document: string, ast: DocumentNode, filename?: string | undefined);
codeGenerator(): SchemaCodeGenerator;
static load(filename: string): Promise<Schema>;
static loadFromString(document: string): Promise<Schema>;
getEntityNames(): string[];
}