diff --git a/website/content/01-getting-started/03-tutorial/01-chapter-0-introduction.mdx b/website/content/010-getting-started/03-tutorial/01-chapter-0-introduction.mdx similarity index 100% rename from website/content/01-getting-started/03-tutorial/01-chapter-0-introduction.mdx rename to website/content/010-getting-started/03-tutorial/01-chapter-0-introduction.mdx diff --git a/website/content/01-getting-started/03-tutorial/02-chapter-1-setup-and-first-query.mdx b/website/content/010-getting-started/03-tutorial/02-chapter-1-setup-and-first-query.mdx similarity index 100% rename from website/content/01-getting-started/03-tutorial/02-chapter-1-setup-and-first-query.mdx rename to website/content/010-getting-started/03-tutorial/02-chapter-1-setup-and-first-query.mdx diff --git a/website/content/01-getting-started/03-tutorial/03-chapter-2-writing-your-first-schema.mdx b/website/content/010-getting-started/03-tutorial/03-chapter-2-writing-your-first-schema.mdx similarity index 100% rename from website/content/01-getting-started/03-tutorial/03-chapter-2-writing-your-first-schema.mdx rename to website/content/010-getting-started/03-tutorial/03-chapter-2-writing-your-first-schema.mdx diff --git a/website/content/01-getting-started/03-tutorial/04-chapter-3-adding-mutations-to-your-api.mdx b/website/content/010-getting-started/03-tutorial/04-chapter-3-adding-mutations-to-your-api.mdx similarity index 100% rename from website/content/01-getting-started/03-tutorial/04-chapter-3-adding-mutations-to-your-api.mdx rename to website/content/010-getting-started/03-tutorial/04-chapter-3-adding-mutations-to-your-api.mdx diff --git a/website/content/01-getting-started/03-tutorial/05-chapter-4-testing-your-api.mdx b/website/content/010-getting-started/03-tutorial/05-chapter-4-testing-your-api.mdx similarity index 100% rename from website/content/01-getting-started/03-tutorial/05-chapter-4-testing-your-api.mdx rename to website/content/010-getting-started/03-tutorial/05-chapter-4-testing-your-api.mdx diff --git a/website/content/01-getting-started/03-tutorial/06-chapter-5-persisting-data-via-prisma.mdx b/website/content/010-getting-started/03-tutorial/06-chapter-5-persisting-data-via-prisma.mdx similarity index 100% rename from website/content/01-getting-started/03-tutorial/06-chapter-5-persisting-data-via-prisma.mdx rename to website/content/010-getting-started/03-tutorial/06-chapter-5-persisting-data-via-prisma.mdx diff --git a/website/content/01-getting-started/03-tutorial/07-chapter-6-testing-with-prisma.mdx b/website/content/010-getting-started/03-tutorial/07-chapter-6-testing-with-prisma.mdx similarity index 100% rename from website/content/01-getting-started/03-tutorial/07-chapter-6-testing-with-prisma.mdx rename to website/content/010-getting-started/03-tutorial/07-chapter-6-testing-with-prisma.mdx diff --git a/website/content/01-getting-started/03-tutorial/08-chapter-7-authentication.mdx b/website/content/010-getting-started/03-tutorial/08-chapter-7-authentication.mdx similarity index 100% rename from website/content/01-getting-started/03-tutorial/08-chapter-7-authentication.mdx rename to website/content/010-getting-started/03-tutorial/08-chapter-7-authentication.mdx diff --git a/website/content/01-getting-started/03-tutorial/index.mdx b/website/content/010-getting-started/03-tutorial/index.mdx similarity index 100% rename from website/content/01-getting-started/03-tutorial/index.mdx rename to website/content/010-getting-started/03-tutorial/index.mdx diff --git a/website/content/01-getting-started/index.mdx b/website/content/010-getting-started/index.mdx similarity index 100% rename from website/content/01-getting-started/index.mdx rename to website/content/010-getting-started/index.mdx diff --git a/website/content/01-migration-guides/02-nexus-schema-users.mdx b/website/content/011-adoption-guides/010-nexus-schema-users.mdx similarity index 69% rename from website/content/01-migration-guides/02-nexus-schema-users.mdx rename to website/content/011-adoption-guides/010-nexus-schema-users.mdx index 39ad75959..0e563d21d 100644 --- a/website/content/01-migration-guides/02-nexus-schema-users.mdx +++ b/website/content/011-adoption-guides/010-nexus-schema-users.mdx @@ -6,61 +6,40 @@ experimental: false staticLink: false --- -## Migrate from Nexus Schema - -Prior to version `0.20`, the `nexus` package comprised only the schema definition and code generation components of the Nexus framework. These components are now known as [`@nexus/schema`](../../components-standalone/schema), and while they're included as part of the Nexus framework, they remain available as a [standalone package](https://github.com/graphql-nexus/schema). (You can read more about the transition of Nexus from a schema library to a full-fledged framework in the [announcement in this GitHub issue](https://github.com/prisma-labs/nexus/issues/373).) - -For users of `nexus` version `0.12` and below, you can either migrate to the `@nexus/schema` package, or to the new Nexus framework. The former is more straightforward, but the latter may significantly simplify your configuration and give you the benefit of baked-in sensible defaults and best practices (especially if you were previously using `graphql-yoga` or `express-graphql`). This guide will cover both scenarios. - -## Using `@nexus/schema` - -Run `npm rm nexus` and `npm i @nexus/schema` to migrate to the updated package name. - -```json -+++ package.json - "dependencies": { -- "nexus": "0.12.0", -+ "@nexus/schema": "0.13.1" - } -``` - -Change any imports of `nexus` to `@nexus/schema`: - -```ts -- import { makeSchema } from "nexus"; -+ import { makeSchema } from "@nexus/schema"; -``` - -If you are a `nexus-prisma` there is almost nothing extra to do. But note it has migrated to `nexus-plugin-prisma`. Learn more about the transition [here](https://github.com/graphql-nexus/nexus-plugin-prisma/issues/630). Do the following to keep using it: - -Your Dependencies - -``` -npm remove nexus-prisma @prisma/client @prisma/cli -npm add nexus-plugin-prisma -``` - -Your Imports - -```ts -- import { nexusPrismaPlugin } from 'nexus-prisma' -+ import { nexusSchemaPrisma } from 'nexus-plugin-prisma/schema' -``` - -## Using `nexus` +## Hello Nexus Schema User! + +This guide is for you if you use `@nexus/schema` on a project and are curious about if you should upgrade to the framework and/or how. + +Nexus is built on top of `@nexus/schema` adding many opinions and features. If you haven't you should check out the [tutorial](/getting-started/tutorial) and read the [introduction](/). But here's a quick rundown of the differences: + +| feature | `nexus` | `@nexus/schema` | +| -------------------------------------------------------------------- | ------- | --------------- | +| JavaScript Support | ✖ | ✔ | +| `@nexus/schema` `makeSchema` Control | ✖ | ✔ | +| GraphQL Schema Builder API | ✔ | ✔ | +| Nexus Schema plugins | ✔ | ✔ | +| Zero Config | ✔ | ✖ | +| CLI | ✔ | ✖ | +| Development Mode | ✔ | ✖ | +| Integrated Build Step with Bundling | ✔ | ✖ | +| Builtin Server | ✔ | ✖ | +| Builtin Logger | ✔ | ✖ | +| Bundled Scalars | ✔ | ✖ | +| Type Discovery for Backing Types | ✔ | ✖ | +| Type Discovery for Context API | ✔ | ✖ | +| Module Discovery for Nexus modules | ✔ | ✖ | +| Framework Plugins | ✔ | ✖ | +| Bundled Dependencies ([why](https://nxs.li/why/bundle-dependencies)) | ✔ | ✖ | + +## Migrating ### Dependencies -1. Remove `nexus@0.12` and add the latest `nexus` in its place (will be something greater than `0.20`). -1. Remove dependency `graphql` as `nexus` bundles it. +Remove `@nexus/schema` and add the latest `nexus` in its place. Also remove dependency `graphql` as `nexus` bundles it. -```json -+++ package.json - "dependencies": { -- "graphql": "...", -- "nexus": "0.12.0", -+ "nexus": "^0.24" - } +``` +npm remove @nexus/schema graphql +npm add nexus ``` ### Project Layout diff --git a/website/content/01-migration-guides/01-prisma-users.mdx b/website/content/011-adoption-guides/020-prisma-users.mdx similarity index 86% rename from website/content/01-migration-guides/01-prisma-users.mdx rename to website/content/011-adoption-guides/020-prisma-users.mdx index e93c9a15c..2545df769 100644 --- a/website/content/01-migration-guides/01-prisma-users.mdx +++ b/website/content/011-adoption-guides/020-prisma-users.mdx @@ -2,12 +2,16 @@ title: Prisma Users --- -## Overview +## Hello Prisma User! + +This guide is for you if you use `@prisma/client` on a project that _does not_ use Nexus but are wondering if you should. Nexus is a feature rich GraphQL Framework. One of its hallmark features is how it helps you achieve a very high degree of type-safety as you implement your API. If you are a long-time Prisma user you can see it as a spiritual successor to the rich GraphQL experiences that Prisma 1 and even Graphcool offered. Nexus is still young, but growing fast. If you haven't already, you should read the [Welcome to Nexus](/) introduction. +This guide will show you the ways you can use Nexus with the Prisma toolkit. + ## Vanilla integration As a Prisma user you can easily integrate Prisma into Nexus yourself, take a look: @@ -44,13 +48,13 @@ This is fine, but there's something better. The Nexus Prisma _plugin_ (`nexus-pl - Declarative APIs for projecting types from your Prisma schema onto your GraphQL Schema - Declarative APIs for creating mutations and queries (including automatically implemented resolvers!) -If you haven't already, you should read the [Welcome to Nexus Prisma](../../plugins/prisma) introduction. +If you haven't already, you should read the [Welcome to Nexus Prisma](/pluginss/prisma) introduction. ## Learning Path 1. Read [Welcome to Nexus](/) 2. Do [The Nexus Tutorial](../../getting-started/tutorial/chapter-introduction) -3. If using the Prisma plugin (you should!) read [Welcome to Nexus Prisma](../../plugins/prisma) +3. If using the Prisma plugin (you should!) read [Welcome to Nexus Prisma](/pluginss/prisma) TL;DR diff --git a/website/content/011-adoption-guides/030-nexus-0-12-users.mdx b/website/content/011-adoption-guides/030-nexus-0-12-users.mdx new file mode 100644 index 000000000..d2c5f6525 --- /dev/null +++ b/website/content/011-adoption-guides/030-nexus-0-12-users.mdx @@ -0,0 +1,47 @@ +--- +title: Nexus@0.12 Users +# TODO if these frontmatter items are removed the site crashes +duration: '' +experimental: false +staticLink: false +--- + +## Hello `nexus@0.12` or Lower User! + +This guide is for you if you're a `nexus` user _prior_ to version `0.20`. + +Prior to version `0.20`, the `nexus` package comprised only the schema component of the Nexus framework. The last version of this schema-only version of the `nexus` package was `0.12`. Subsequent versions moved to the package [`@nexus/schema`](../../components-standalone/schema). Meanwhile, `nexus` `0.20` and above became the framework package. It builds, in part, on top of `@nexus/schema`. You can read the announcement about the transition of Nexus from a schema library to a full-fledged framework in [this GitHub issue](https://github.com/graphql-nexus/schema/issues/373).) + +You can remain a Nexus schema library user by using the `@nexus/schema` package. Or you can upgrade to the framework by using the latest version of the `nexus` package. The following sections show how to migrate either way. + +## Migrating to `@nexus/schema` + +Remove `nexus`, add `@nexus/schema` and update imports throughout your codebase accordingly. E.g.: + +``` +npm remove nexus +npm add @nexus/schema +``` + +```ts +- import { makeSchema } from "nexus"; ++ import { makeSchema } from "@nexus/schema"; +``` + +If you are a `nexus-prisma` user, note that the package has migrated to `nexus-plugin-prisma`. You can learn more about the transition in [this Github issue](https://github.com/graphql-nexus/nexus-plugin-prisma/issues/630). + +To migrate, please remove `nexus-prisma`, `@prisma/client`, `@prisma/cli`, add `nexus-plugin-prisma`, and update imports throughout your codebase accordingly. E.g.: + +``` +npm remove nexus-prisma @prisma/client @prisma/cli +npm add nexus-plugin-prisma +``` + +```ts +- import { nexusPrismaPlugin } from 'nexus-prisma' ++ import { nexusSchemaPrisma } from 'nexus-plugin-prisma/schema' +``` + +## Migrating to `nexus` Framework + +For this path, please refer to our [migration guide for Nexus Schema users](/adoption-guides/nexus-schema-users#migrating). The only difference is that instead of going from `@nexus/schema` to `nexus` you will be going from `nexus@0.12` (or lower) to `nexus@latest`. diff --git a/website/content/01-migration-guides/index.mdx b/website/content/011-adoption-guides/index.mdx similarity index 69% rename from website/content/01-migration-guides/index.mdx rename to website/content/011-adoption-guides/index.mdx index fc8f54270..f5a6bee64 100644 --- a/website/content/01-migration-guides/index.mdx +++ b/website/content/011-adoption-guides/index.mdx @@ -1,5 +1,5 @@ --- -title: Migration guides +title: Adoption guides hidePage: false --- diff --git a/website/content/02-guides/01-concepts.mdx b/website/content/020-guides/01-concepts.mdx similarity index 100% rename from website/content/02-guides/01-concepts.mdx rename to website/content/020-guides/01-concepts.mdx diff --git a/website/content/02-guides/02-schema.mdx b/website/content/020-guides/02-schema.mdx similarity index 100% rename from website/content/02-guides/02-schema.mdx rename to website/content/020-guides/02-schema.mdx diff --git a/website/content/02-guides/03-server.mdx b/website/content/020-guides/03-server.mdx similarity index 100% rename from website/content/02-guides/03-server.mdx rename to website/content/020-guides/03-server.mdx diff --git a/website/content/02-guides/04-logger.mdx b/website/content/020-guides/04-logger.mdx similarity index 100% rename from website/content/02-guides/04-logger.mdx rename to website/content/020-guides/04-logger.mdx diff --git a/website/content/02-guides/05-testing.mdx b/website/content/020-guides/05-testing.mdx similarity index 100% rename from website/content/02-guides/05-testing.mdx rename to website/content/020-guides/05-testing.mdx diff --git a/website/content/02-guides/06-project-layout.mdx b/website/content/020-guides/06-project-layout.mdx similarity index 100% rename from website/content/02-guides/06-project-layout.mdx rename to website/content/020-guides/06-project-layout.mdx diff --git a/website/content/02-guides/07-error-handling.mdx b/website/content/020-guides/07-error-handling.mdx similarity index 100% rename from website/content/02-guides/07-error-handling.mdx rename to website/content/020-guides/07-error-handling.mdx diff --git a/website/content/02-guides/08-plugins.mdx b/website/content/020-guides/08-plugins.mdx similarity index 100% rename from website/content/02-guides/08-plugins.mdx rename to website/content/020-guides/08-plugins.mdx diff --git a/website/content/02-guides/09-recipes.mdx b/website/content/020-guides/09-recipes.mdx similarity index 100% rename from website/content/02-guides/09-recipes.mdx rename to website/content/020-guides/09-recipes.mdx diff --git a/website/content/02-guides/10-writing-plugins.mdx b/website/content/020-guides/10-writing-plugins.mdx similarity index 100% rename from website/content/02-guides/10-writing-plugins.mdx rename to website/content/020-guides/10-writing-plugins.mdx diff --git a/website/content/02-guides/11-cli.mdx b/website/content/020-guides/11-cli.mdx similarity index 100% rename from website/content/02-guides/11-cli.mdx rename to website/content/020-guides/11-cli.mdx diff --git a/website/content/02-guides/index.mdx b/website/content/020-guides/index.mdx similarity index 100% rename from website/content/02-guides/index.mdx rename to website/content/020-guides/index.mdx diff --git a/website/content/03-pluginss/01-prisma.mdx b/website/content/030-pluginss/01-prisma.mdx similarity index 100% rename from website/content/03-pluginss/01-prisma.mdx rename to website/content/030-pluginss/01-prisma.mdx diff --git a/website/content/03-pluginss/02-jwt-auth.mdx b/website/content/030-pluginss/02-jwt-auth.mdx similarity index 100% rename from website/content/03-pluginss/02-jwt-auth.mdx rename to website/content/030-pluginss/02-jwt-auth.mdx diff --git a/website/content/03-pluginss/03-graphql-shield.mdx b/website/content/030-pluginss/03-graphql-shield.mdx similarity index 100% rename from website/content/03-pluginss/03-graphql-shield.mdx rename to website/content/030-pluginss/03-graphql-shield.mdx diff --git a/website/content/03-pluginss/index.mdx b/website/content/030-pluginss/index.mdx similarity index 100% rename from website/content/03-pluginss/index.mdx rename to website/content/030-pluginss/index.mdx diff --git a/website/content/04-api/01-nexus/01-schema.mdx b/website/content/040-api/01-nexus/01-schema.mdx similarity index 100% rename from website/content/04-api/01-nexus/01-schema.mdx rename to website/content/040-api/01-nexus/01-schema.mdx diff --git a/website/content/04-api/01-nexus/02-log.mdx b/website/content/040-api/01-nexus/02-log.mdx similarity index 100% rename from website/content/04-api/01-nexus/02-log.mdx rename to website/content/040-api/01-nexus/02-log.mdx diff --git a/website/content/04-api/01-nexus/03-server.mdx b/website/content/040-api/01-nexus/03-server.mdx similarity index 100% rename from website/content/04-api/01-nexus/03-server.mdx rename to website/content/040-api/01-nexus/03-server.mdx diff --git a/website/content/04-api/01-nexus/04-settings.mdx b/website/content/040-api/01-nexus/04-settings.mdx similarity index 100% rename from website/content/04-api/01-nexus/04-settings.mdx rename to website/content/040-api/01-nexus/04-settings.mdx diff --git a/website/content/04-api/01-nexus/05-use.mdx b/website/content/040-api/01-nexus/05-use.mdx similarity index 100% rename from website/content/04-api/01-nexus/05-use.mdx rename to website/content/040-api/01-nexus/05-use.mdx diff --git a/website/content/04-api/01-nexus/index.mdx b/website/content/040-api/01-nexus/index.mdx similarity index 100% rename from website/content/04-api/01-nexus/index.mdx rename to website/content/040-api/01-nexus/index.mdx diff --git a/website/content/04-api/02-nexus-testing.mdx b/website/content/040-api/02-nexus-testing.mdx similarity index 100% rename from website/content/04-api/02-nexus-testing.mdx rename to website/content/040-api/02-nexus-testing.mdx diff --git a/website/content/04-api/03-nexus-plugin.mdx b/website/content/040-api/03-nexus-plugin.mdx similarity index 100% rename from website/content/04-api/03-nexus-plugin.mdx rename to website/content/040-api/03-nexus-plugin.mdx diff --git a/website/content/04-api/index.mdx b/website/content/040-api/index.mdx similarity index 100% rename from website/content/04-api/index.mdx rename to website/content/040-api/index.mdx diff --git a/website/content/05-meta/01-roadmap.mdx b/website/content/050-meta/01-roadmap.mdx similarity index 100% rename from website/content/05-meta/01-roadmap.mdx rename to website/content/050-meta/01-roadmap.mdx diff --git a/website/content/05-meta/02-changelog.mdx b/website/content/050-meta/02-changelog.mdx similarity index 100% rename from website/content/05-meta/02-changelog.mdx rename to website/content/050-meta/02-changelog.mdx diff --git a/website/content/05-meta/03-spec-sheet.mdx b/website/content/050-meta/03-spec-sheet.mdx similarity index 100% rename from website/content/05-meta/03-spec-sheet.mdx rename to website/content/050-meta/03-spec-sheet.mdx diff --git a/website/content/05-meta/04-architecture.mdx b/website/content/050-meta/04-architecture.mdx similarity index 100% rename from website/content/05-meta/04-architecture.mdx rename to website/content/050-meta/04-architecture.mdx diff --git a/website/content/05-meta/index.mdx b/website/content/050-meta/index.mdx similarity index 100% rename from website/content/05-meta/index.mdx rename to website/content/050-meta/index.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/01-api-objectType.mdx b/website/content/060-components-standalone/01-schema/01-api/01-api-objectType.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/01-api-objectType.mdx rename to website/content/060-components-standalone/01-schema/01-api/01-api-objectType.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/02-api-unionType.mdx b/website/content/060-components-standalone/01-schema/01-api/02-api-unionType.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/02-api-unionType.mdx rename to website/content/060-components-standalone/01-schema/01-api/02-api-unionType.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/03-api-scalarType.mdx b/website/content/060-components-standalone/01-schema/01-api/03-api-scalarType.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/03-api-scalarType.mdx rename to website/content/060-components-standalone/01-schema/01-api/03-api-scalarType.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/04-api-interfaceType.mdx b/website/content/060-components-standalone/01-schema/01-api/04-api-interfaceType.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/04-api-interfaceType.mdx rename to website/content/060-components-standalone/01-schema/01-api/04-api-interfaceType.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/05-api-enumType.mdx b/website/content/060-components-standalone/01-schema/01-api/05-api-enumType.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/05-api-enumType.mdx rename to website/content/060-components-standalone/01-schema/01-api/05-api-enumType.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/05-api-inputObjectType.mdx b/website/content/060-components-standalone/01-schema/01-api/05-api-inputObjectType.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/05-api-inputObjectType.mdx rename to website/content/060-components-standalone/01-schema/01-api/05-api-inputObjectType.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/06-api-args.mdx b/website/content/060-components-standalone/01-schema/01-api/06-api-args.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/06-api-args.mdx rename to website/content/060-components-standalone/01-schema/01-api/06-api-args.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/07-api-makeSchema.mdx b/website/content/060-components-standalone/01-schema/01-api/07-api-makeSchema.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/07-api-makeSchema.mdx rename to website/content/060-components-standalone/01-schema/01-api/07-api-makeSchema.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/08-api-extendType.mdx b/website/content/060-components-standalone/01-schema/01-api/08-api-extendType.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/08-api-extendType.mdx rename to website/content/060-components-standalone/01-schema/01-api/08-api-extendType.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/09-api-mutationField.mdx b/website/content/060-components-standalone/01-schema/01-api/09-api-mutation-field.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/09-api-mutationField.mdx rename to website/content/060-components-standalone/01-schema/01-api/09-api-mutation-field.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/10-api-queryField.mdx b/website/content/060-components-standalone/01-schema/01-api/10-api-queryField.mdx similarity index 78% rename from website/content/06-components-standalone/01-schema/01-api/10-api-queryField.mdx rename to website/content/060-components-standalone/01-schema/01-api/10-api-queryField.mdx index 6cc1ca2de..b36fff0f6 100644 --- a/website/content/06-components-standalone/01-schema/01-api/10-api-queryField.mdx +++ b/website/content/060-components-standalone/01-schema/01-api/10-api-queryField.mdx @@ -5,7 +5,7 @@ codeStyle: true ## queryField -Often times you want to split up query fields into different domains of your application, and like [`mutationField`](/components-standalone/schema/api/api-mutationField) are another one of the most common use-cases for `extendType`. `queryField` exists as a shorthand for this common case: +Often times you want to split up query fields into different domains of your application, and like [`mutationField`](/components-standalone/schema/api/api-mutation-field) are another one of the most common use-cases for `extendType`. `queryField` exists as a shorthand for this common case: ```ts import { stringArg } from '@nexus/schema' @@ -36,7 +36,7 @@ export const createUser = extendType({ }) ``` -You can also use it with a function as the first argument, which will pass the `t` provided to the definition block, especially useful when using with the [connection plugin](../plugins/connection): +You can also use it with a function as the first argument, which will pass the `t` provided to the definition block, especially useful when using with the [connection plugin](/components-standalone/schema/plugins/connection): ```ts export const usersQueryField = queryField(t => { diff --git a/website/content/06-components-standalone/01-schema/01-api/11-api-plugins.mdx b/website/content/060-components-standalone/01-schema/01-api/11-api-plugins.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/11-api-plugins.mdx rename to website/content/060-components-standalone/01-schema/01-api/11-api-plugins.mdx diff --git a/website/content/06-components-standalone/01-schema/01-api/index.mdx b/website/content/060-components-standalone/01-schema/01-api/index.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/01-api/index.mdx rename to website/content/060-components-standalone/01-schema/01-api/index.mdx diff --git a/website/content/06-components-standalone/01-schema/02-sdl-converter.mdx b/website/content/060-components-standalone/01-schema/02-sdl-converter.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/02-sdl-converter.mdx rename to website/content/060-components-standalone/01-schema/02-sdl-converter.mdx diff --git a/website/content/06-components-standalone/01-schema/03-plugins/01-connection.mdx b/website/content/060-components-standalone/01-schema/03-plugins/01-connection.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/03-plugins/01-connection.mdx rename to website/content/060-components-standalone/01-schema/03-plugins/01-connection.mdx diff --git a/website/content/06-components-standalone/01-schema/03-plugins/02-query-complexity.mdx b/website/content/060-components-standalone/01-schema/03-plugins/02-query-complexity.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/03-plugins/02-query-complexity.mdx rename to website/content/060-components-standalone/01-schema/03-plugins/02-query-complexity.mdx diff --git a/website/content/06-components-standalone/01-schema/03-plugins/03-field-authorize.mdx b/website/content/060-components-standalone/01-schema/03-plugins/03-field-authorize.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/03-plugins/03-field-authorize.mdx rename to website/content/060-components-standalone/01-schema/03-plugins/03-field-authorize.mdx diff --git a/website/content/06-components-standalone/01-schema/03-plugins/04-nullability-guard.mdx b/website/content/060-components-standalone/01-schema/03-plugins/04-nullability-guard.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/03-plugins/04-nullability-guard.mdx rename to website/content/060-components-standalone/01-schema/03-plugins/04-nullability-guard.mdx diff --git a/website/content/06-components-standalone/01-schema/03-plugins/05-prisma.mdx b/website/content/060-components-standalone/01-schema/03-plugins/05-prisma.mdx similarity index 96% rename from website/content/06-components-standalone/01-schema/03-plugins/05-prisma.mdx rename to website/content/060-components-standalone/01-schema/03-plugins/05-prisma.mdx index 16bd9f634..32109c4d2 100644 --- a/website/content/06-components-standalone/01-schema/03-plugins/05-prisma.mdx +++ b/website/content/060-components-standalone/01-schema/03-plugins/05-prisma.mdx @@ -4,7 +4,7 @@ title: Prisma ## Prisma -Refer to the [framework docs](../../../plugins/prisma#runtime-integration) for API reference and concepts. What follows here are aspects that are particular to the schema plugin only. +Refer to the [framework docs](/pluginss/prisma#runtime-integration-1) for API reference and concepts. What follows here are aspects that are particular to the schema plugin only. ## Installation diff --git a/website/content/06-components-standalone/01-schema/03-plugins/index.mdx b/website/content/060-components-standalone/01-schema/03-plugins/index.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/03-plugins/index.mdx rename to website/content/060-components-standalone/01-schema/03-plugins/index.mdx diff --git a/website/content/06-components-standalone/01-schema/index.mdx b/website/content/060-components-standalone/01-schema/index.mdx similarity index 100% rename from website/content/06-components-standalone/01-schema/index.mdx rename to website/content/060-components-standalone/01-schema/index.mdx diff --git a/website/content/06-components-standalone/02-logger/01-api.mdx b/website/content/060-components-standalone/02-logger/01-api.mdx similarity index 100% rename from website/content/06-components-standalone/02-logger/01-api.mdx rename to website/content/060-components-standalone/02-logger/01-api.mdx diff --git a/website/content/06-components-standalone/02-logger/02-plugins.mdx b/website/content/060-components-standalone/02-logger/02-plugins.mdx similarity index 100% rename from website/content/06-components-standalone/02-logger/02-plugins.mdx rename to website/content/060-components-standalone/02-logger/02-plugins.mdx diff --git a/website/content/06-components-standalone/02-logger/03-plugins-api.mdx b/website/content/060-components-standalone/02-logger/03-plugins-api.mdx similarity index 100% rename from website/content/06-components-standalone/02-logger/03-plugins-api.mdx rename to website/content/060-components-standalone/02-logger/03-plugins-api.mdx diff --git a/website/content/06-components-standalone/02-logger/index.mdx b/website/content/060-components-standalone/02-logger/index.mdx similarity index 100% rename from website/content/06-components-standalone/02-logger/index.mdx rename to website/content/060-components-standalone/02-logger/index.mdx diff --git a/website/content/06-components-standalone/index.mdx b/website/content/060-components-standalone/index.mdx similarity index 100% rename from website/content/06-components-standalone/index.mdx rename to website/content/060-components-standalone/index.mdx