Provides base GraphQL schema with common scalars and error types.
// Source: https://github.com/webiny/webiny-js | License: MIT | Copyright Webiny Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { CoreGraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.js";
import { staticSchemaKey } from "@webiny/api-graphql/graphql/staticSchemaKey.js";
import type { IGraphQLSchemaBuilder } from "@webiny/api-graphql/features/GraphQLSchemaBuilder/abstractions.js";
import {
JsonScalar,
LongScalar,
IconScalar,
RefInputScalar,
NumberScalar,
AnyScalar,
DateTimeScalar,
DateTimeZScalar,
DateScalar,
TimeScalar
} from "@webiny/api-graphql/builtInTypes/index.js";
const BASE_TYPES = `
type Query
type Mutation
scalar JSON
scalar Long
scalar Icon
scalar RefInput
scalar
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key