
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@nl-framework/graphql
Advanced tools
GraphQL module for nl-framework with code-first schema generation and Apollo Federation support.
Code-first GraphQL layer for the Nael Framework with resolver decorators, schema generation, and Apollo Federation support.
bun add @nl-framework/graphql graphql
class-transformer before resolvers execute, rejecting invalid payloads with BAD_USER_INPUT errors.import { Module } from '@nl-framework/core';
import { Resolver, Query, Mutation, Args, InputType, Field } from '@nl-framework/graphql';
import { NaelFactory } from '@nl-framework/platform';
import { IsEmail, IsOptional, IsString, MinLength } from 'class-validator';
@InputType()
class CreateUserInput {
@Field()
@IsEmail()
email!: string;
@Field({ nullable: true })
@IsOptional()
@IsString()
@MinLength(2)
name?: string;
}
@Resolver('User')
class UsersResolver {
private readonly users = new Map<string, { id: string; email: string; name?: string }>();
@Query(() => [String])
users() {
return Array.from(this.users.values());
}
@Mutation(() => String)
createUser(@Args('input', () => CreateUserInput) input: CreateUserInput) {
const id = crypto.randomUUID();
this.users.set(id, { id, email: input.email, name: input.name });
return id;
}
}
@Module({
providers: [UsersResolver],
resolvers: [UsersResolver],
})
class GraphqlModule {}
const app = await NaelFactory.create(GraphqlModule);
const { graphql } = await app.listen({ http: 4000 });
console.log('GraphQL ready at', graphql?.url ?? 'http://localhost:4000/graphql');
Apache-2.0
FAQs
GraphQL module for nl-framework with code-first schema generation and Apollo Federation support.
We found that @nl-framework/graphql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.