Skip to main content

@graphql-mesh/cli

Functions#

generateSdk#

generateSdk(schema: GraphQLSchema, __namedParameters: { depth?: number ; flatten-types: boolean ; operations?: string[] }): Promise<string\>

Parameters:#

NameType
schemaGraphQLSchema
__namedParametersobject
__namedParameters.depth?number
__namedParameters.flatten-typesboolean
__namedParameters.operations?string[]

Returns: Promise<string\>

Defined in: packages/cli/src/commands/generate-sdk.ts:13


graphqlMesh#

graphqlMesh(): Promise<{ $0: string ; _: (string | number)[] ; output: string }\>

Returns: Promise<{ $0: string ; _: (string | number)[] ; output: string }\>

Defined in: packages/cli/src/index.ts:15


serveMesh#

serveMesh(baseDir: string, argsPort?: number): Promise<{ app: Express ; httpServer: Server ; logger: Logger ; mesh: any ; readyFlag: boolean }\>

Parameters:#

NameType
baseDirstring
argsPort?number

Returns: Promise<{ app: Express ; httpServer: Server ; logger: Logger ; mesh: any ; readyFlag: boolean }\>

Defined in: packages/cli/src/commands/serve/serve.ts:29