GraphQL module: server init, query/field helpers, resolver libraries, error helpers, and context types.
// Server-side (resolvers, route setup)import { query, field, QueryLibrary, FieldLibrary, initGraphQLServer, GQLError } from "naystack/graphql";// Type helpersimport type { QueryResponseType, FieldResponseType, Context, AuthorizedContext } from "naystack/graphql"; Copy
// Server-side (resolvers, route setup)import { query, field, QueryLibrary, FieldLibrary, initGraphQLServer, GQLError } from "naystack/graphql";// Type helpersimport type { QueryResponseType, FieldResponseType, Context, AuthorizedContext } from "naystack/graphql";
GraphQL module: server init, query/field helpers, resolver libraries, error helpers, and context types.
Example