Skip to content

Commit d16155e

Browse files
committed
remove custom Scalar usage example since it's now consistent with other
types
1 parent c472bf4 commit d16155e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

docs/pages/docs/basic-types.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ class DateTime(Scalar):
5959
return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
6060
```
6161

62-
Unlike the other basic types, custom `Scalar` types should not be instantiated
63-
when used.
64-
65-
```python
66-
import graphene
67-
68-
class Post(graphene.ObjectType):
69-
created = graphene.Field(DateTime)
70-
```
71-
7262
## Mounting in ClassTypes
7363

7464
This types if are mounted in a `ObjectType`, `Interface` or `Mutation`,

0 commit comments

Comments
 (0)