
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@jenyus-org/nestjs-graphql-utils
Advanced tools
NestJS utilities and decorators built around @jenyus-org/graphql-utils.
@jenyus-org/nestjs-graphql-utils
is a collection of utilities and decorators built on top of @jenyus-org/graphql-utils
to encourage the stateless nature of NestJS GraphQL resolvers and simplify the usage of helpers.
The full documentation with live code sandboxes can be found here.
@jenyus-org/nestjs-graphql-utils
can be installed from NPM by running one of the following commands:
NPM:
npm i --save @jenyus-org/nestjs-graphql-utils
Yarn:
yarn add @jenyus-org/nestjs-graphql-utils
This will install @jenyus-org/nestjs-graphql-utils
and all its dependencies.
Typically, you will want to use the NestJS GraphQL-Utils package and its decorators to optimize your SQL SELECT
and JOIN
statements. You can use the @Selections()
decorator and wildcards to get the precise fields and relations to populate:
import { Selections } from "@jenyus-org/nestjs-graphql-utils";
import { Parent, Query, ResolveField, Resolver } from "@nestjs/graphql";
import { UserObject } from "../users/dto/user.object";
import { UsersService } from "../users/users.service";
import { PostObject } from "./dto/post.object";
import { Post } from "./entities/post.entity";
import { PostsService } from "./posts.service";
@Resolver(() => PostObject)
class PostsResolver {
constructor(
private postsService: PostsService,
private usersService: UsersService
) {}
@Query(() => [PostObject])
posts(
@Selections("posts", ["**.**"])
relations: string[],
@Selections("posts", ["*."]) fields: string[]
) {
return await this.postsService.findAll({ relations, fields });
}
@ResolveField(() => UserObject)
async author(@Parent() post: Post) {
if (post.author) {
return post.author;
}
return await this.usersService.findOne({ postId: post.id });
}
}
FAQs
NestJS utilities and decorators built around @jenyus-org/graphql-utils.
We found that @jenyus-org/nestjs-graphql-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.