Skip to content

Commit

Permalink
docs(prisma): update sentences wording
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Dec 29, 2021
1 parent 2b9fb09 commit aeb68a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/prisma.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ sidebar_label: Prisma

TypeGraphQL provides an integration with Prisma by the [`typegraphql-prisma` package](https://www.npmjs.com/package/typegraphql-prisma).

It generates the type classes and CRUD resolvers based on the Prisma schema, so you can execute complex queries or mutations that corresponds to the Prisma actions, without having to write any code for that.
It generates the type classes and CRUD resolvers based on the Prisma schema, so we can execute complex queries or mutations that corresponds to the Prisma actions, without having to write any code for that.

## Overview

To make use of the prisma integration, first you need to add a new generator to the `schema.prisma` file:
To make use of the prisma integration, first we need to add a new generator to the `schema.prisma` file:

```sh
generator typegraphql {
provider = "typegraphql-prisma"
}
```

Then, after running `prisma generate` you can import the generated resolvers classes and use them to build your schema:
Then, after running `prisma generate` we can import the generated resolvers classes and use them to build our schema:

```typescript
import { resolvers } from "@generated/type-graphql";
Expand All @@ -28,7 +28,7 @@ const schema = await buildSchema({
});
```

So you will be able to execute such complex query that talks with the db in just a few minutes!
So we will be able to execute a complex query, that talks with the real database, in just a few minutes!

```graphql
query GetSomeUsers {
Expand All @@ -49,4 +49,4 @@ query GetSomeUsers {

To read about all the `typegraphql-prisma` features, like exposing selected Prisma actions or changing exposed model type name, as well as how to write a custom query or how to add some fields to model type, please check the docs [on the dedicated website](https://prisma.typegraphql.com/).

You can find there also links to some examples and more detailed info about the installation and the configuration.
There also can be found the links to some examples and more detailed info about the installation and the configuration.
10 changes: 5 additions & 5 deletions website/versioned_docs/version-1.0.0/prisma.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ original_id: prisma

TypeGraphQL provides an integration with Prisma by the [`typegraphql-prisma` package](https://www.npmjs.com/package/typegraphql-prisma).

It generates the type classes and CRUD resolvers based on the Prisma schema, so you can execute complex queries or mutations that corresponds to the Prisma actions, without having to write any code for that.
It generates the type classes and CRUD resolvers based on the Prisma schema, so we can execute complex queries or mutations that corresponds to the Prisma actions, without having to write any code for that.

## Overview

To make use of the prisma integration, first you need to add a new generator to the `schema.prisma` file:
To make use of the prisma integration, first we need to add a new generator to the `schema.prisma` file:

```sh
generator typegraphql {
provider = "typegraphql-prisma"
}
```

Then, after running `prisma generate` you can import the generated resolvers classes and use them to build your schema:
Then, after running `prisma generate` we can import the generated resolvers classes and use them to build our schema:

```typescript
import { resolvers } from "@generated/type-graphql";
Expand All @@ -30,7 +30,7 @@ const schema = await buildSchema({
});
```

So you will be able to execute such complex query that talks with the db in just a few minutes!
So we will be able to execute a complex query, that talks with the real database, in just a few minutes!

```graphql
query GetSomeUsers {
Expand All @@ -51,4 +51,4 @@ query GetSomeUsers {

To read about all the `typegraphql-prisma` features, like exposing selected Prisma actions or changing exposed model type name, as well as how to write a custom query or how to add some fields to model type, please check the docs [on the dedicated website](https://prisma.typegraphql.com/).

You can find there also links to some examples and more detailed info about the installation and the configuration.
There also can be found the links to some examples and more detailed info about the installation and the configuration.

0 comments on commit aeb68a5

Please sign in to comment.