@graphql-mesh/cli

Functions#

generateSdk#

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

Parameters:#

schema: GraphQLSchema

__namedParameters: object

NameType
depth?number
flatten-typesboolean
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:16


serveMesh#

serveMesh(logger: Logger, schema: GraphQLSchema, contextBuilder: (initialContextValue?: any) => Promise<Record<string, any\>\>, pubsub: MeshPubSub, __namedParameters?: ServeConfig): Promise<void\>

Parameters:#

logger: Logger

schema: GraphQLSchema

contextBuilder: function

pubsub: MeshPubSub

__namedParameters: ServeConfig

Returns: Promise<void\>

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