From aeb68a5e684a069f08647ecb2d5ac2c77c7d0a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lytek?= Date: Wed, 29 Dec 2021 09:14:14 +0100 Subject: [PATCH] docs(prisma): update sentences wording --- docs/prisma.md | 10 +++++----- website/versioned_docs/version-1.0.0/prisma.md | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/prisma.md b/docs/prisma.md index 94e22a72c..3d13fb384 100644 --- a/docs/prisma.md +++ b/docs/prisma.md @@ -5,11 +5,11 @@ 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 { @@ -17,7 +17,7 @@ generator typegraphql { } ``` -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"; @@ -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 { @@ -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. diff --git a/website/versioned_docs/version-1.0.0/prisma.md b/website/versioned_docs/version-1.0.0/prisma.md index 4c112d63c..d9d675eef 100644 --- a/website/versioned_docs/version-1.0.0/prisma.md +++ b/website/versioned_docs/version-1.0.0/prisma.md @@ -7,11 +7,11 @@ 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 { @@ -19,7 +19,7 @@ generator typegraphql { } ``` -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"; @@ -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 { @@ -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.