Skip to content

Commit

Permalink
chore(deps): update all deps with peer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Aug 7, 2024
1 parent 31c892e commit 162d11f
Show file tree
Hide file tree
Showing 6 changed files with 5,635 additions and 4,974 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Changelog and release notes

<!-- ## Unreleased -->
## Unreleased

<!-- Here goes all the unreleased changes descriptions -->

### Features

- **Breaking Change**: update `graphql-js` peer dependency to `^16.9.0`

## v2.0.0-rc.2

## Features
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-validation/recipe.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { type Recipe } from "./recipe.type";
export class RecipeInput implements Partial<Recipe> {
@Field()
// Joi decorator
@Joiful.string().required().max(30)
@(Joiful.string().required().max(30))
title!: string;

@Field({ nullable: true })
// Joi decorator
@Joiful.string().min(30).max(255)
@(Joiful.string().min(30).max(255))
description?: string;
}
4 changes: 2 additions & 2 deletions examples/custom-validation/recipes.arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { ArgsType, Field, Int } from "type-graphql";
export class RecipesArguments {
@Field(_type => Int)
// use decorators for Joi
@Joiful.number().min(0)
@(Joiful.number().min(0))
skip = 0;

@Field(_type => Int)
// use decorators for Joi
@Joiful.number().min(1).max(50)
@(Joiful.number().min(1).max(50))
take = 10;
}
Loading

0 comments on commit 162d11f

Please sign in to comment.