Skip to content

Commit 8169eb8

Browse files
authored
Reorder changesets (#51)
1 parent 0e54006 commit 8169eb8

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Handling this change should generally just require removing `.graphQLType` from
88

99
```diff
1010
import { GraphQLSchema } from "graphql";
11-
import { g } from "@graphql-ts/schema";
1211

1312
const Query = g.object()({
1413
name: "Query",
@@ -28,4 +27,4 @@ const schema = new GraphQLSchema({
2827
});
2928
```
3029

31-
The types returned by `@graphql-ts/schema` are internally now extended classes of the equivalent types from GraphQL.js (though only in the types, at runtime they are re-exports). These new classes are exported from `@graphql-ts/schema` as `GObjectType` and etc. The constructors of the `G*` types can be used directly safely in place of `g.*` in **some cases** though some are not safe and it's still recommended to use `g.*` to also have binding to the same context type without needed to provide it manually.
30+
The types returned by `@graphql-ts/schema` are internally now extended classes of the equivalent types from GraphQL.js (though only in the types, at runtime they are re-exports). These new classes are exported from `@graphql-ts/schema` as `GObjectType` and etc. The constructors of the `G*` types can be used directly safely in place of the `g.*` functions in **some cases** though some are not safe and it's still recommended to use `g.*` to also have binding to the same context type without needed to provide it manually.
File renamed without changes.
File renamed without changes.

packages/schema/src/output.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -923,11 +923,11 @@ export type GWithContext<Context> = {
923923
};
924924

925925
/**
926-
* The `gWithContext` export is the primary entrypoint into using
927-
* `@graphql-ts/schema` that lets you compose GraphQL types into a GraphQL
928-
* Schema
926+
* The `gWithContext` function accepts a `Context` type parameter which binds
927+
* the returned functions so they can be used to compose GraphQL types into a
928+
* GraphQL schema.
929929
*
930-
* A simple schema with only a query type looks like this.
930+
* A simple schema with only a query type looks like this:
931931
*
932932
* ```ts
933933
* import { gWithContext } from "@graphql-ts/schema";

0 commit comments

Comments
 (0)