Skip to content

Commit 837edba

Browse files
authored
Update scalars.md
Using the alias results in an error. Therefore, it should be removed. Importing the library directly resolves this issue.
1 parent fbd5322 commit 837edba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/graphql/scalars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $ npm i --save graphql-type-json
7878
Once the package is installed, we pass a custom resolver to the `forRoot()` method:
7979

8080
```typescript
81-
import * as GraphQLJSON from 'graphql-type-json';
81+
import GraphQLJSON from 'graphql-type-json';
8282

8383
@Module({
8484
imports: [

0 commit comments

Comments
 (0)