You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/load-your-schema.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ sidebar_label: Load Your Schema and Resolvers
6
6
7
7
There are multiple ways to load your schema, and GraphQL Modules tries to make it easier as possible for you.
8
8
9
-
## Using Sonar
9
+
## Using Sonar in `graphql-toolkit`
10
10
11
-
One of the tools of GraphQL Modules is `@graphql-modules/sonar`, it has a power mechanism for finding and loading your schema and resolvers files.
11
+
You can use `graphql-toolkit`, it has a power mechanism for finding and loading your schema and resolvers files.
12
12
13
-
Along with `@graphql-modules/sonar`, you can separate your GraphQL schema definition and resolvers to smaller parts, and load without specifying each file.
13
+
Along with `graphql-toolkit`'s `sonar`, you can separate your GraphQL schema definition and resolvers to smaller parts, and load without specifying each file.
14
14
15
15
For example, given the following structure:
16
16
@@ -42,7 +42,7 @@ export const UserModule = new GraphQLModule({
42
42
43
43
This way, you don't have to specify each file and each resolver and import it - these tools will do it for you.
44
44
45
-
## Using Imports
45
+
## Using Imports with `graphql-import-node`
46
46
47
47
You can also write your schema and resolvers in different field, and import them using **[graphql-import-node](https://github.com/ardatan/graphql-import-node)**:
0 commit comments