Skip to content

Commit

Permalink
chore(deps): update all deps to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Jan 10, 2024
1 parent 5c6190e commit 3d4eb2b
Show file tree
Hide file tree
Showing 7 changed files with 1,620 additions and 2,407 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

### Others

- **Breaking Change**: update `graphql-scalars` peer dependency to `^1.22.4`
- properly configure esm build pipeline to publish working esm version of the package

## v2.0.0-beta.4
Expand Down
6 changes: 3 additions & 3 deletions examples/mikro-orm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from "node:path";
import { ApolloServer } from "@apollo/server";
import { startStandaloneServer } from "@apollo/server/standalone";
import { MikroORM, ReflectMetadataProvider } from "@mikro-orm/core";
import { type PostgreSqlDriver } from "@mikro-orm/postgresql";
import { PostgreSqlDriver } from "@mikro-orm/postgresql";
import { buildSchema } from "type-graphql";
import { type Context } from "./context.type";
import { Rating, Recipe, User } from "./entities";
Expand All @@ -14,11 +14,11 @@ import { RatingResolver, RecipeResolver } from "./resolvers";
async function bootstrap() {
// Initialize MikroORM
const orm = await MikroORM.init<PostgreSqlDriver>({
type: "postgresql",
driver: PostgreSqlDriver,
clientUrl: process.env.DATABASE_URL,
entities: [Rating, Recipe, User],
metadataProvider: ReflectMetadataProvider,
cache: { enabled: false },
metadataCache: { enabled: false },
});
const generator = orm.getSchemaGenerator();
await generator.dropSchema();
Expand Down
Loading

0 comments on commit 3d4eb2b

Please sign in to comment.