File tree Expand file tree Collapse file tree 2 files changed +40
-3
lines changed
examples/flask_mongoengine Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,48 @@ pip install -r requirements.txt
40
40
Now the following command will setup the database, and start the server:
41
41
42
42
``` bash
43
- ./app.py
44
-
43
+ python app.py
45
44
```
46
45
47
46
48
47
Now head on over to
49
48
[ http://127.0.0.1:5000/graphql ] ( http://127.0.0.1:5000/graphql )
50
49
and run some queries!
50
+
51
+ Sample query:
52
+ ```
53
+ {
54
+ allEmployees {
55
+ edges {
56
+ node {
57
+ id,
58
+ name,
59
+ department {
60
+ id,
61
+ name
62
+ },
63
+ roles {
64
+ edges {
65
+ node {
66
+ id,
67
+ name
68
+ }
69
+ }
70
+ },
71
+ leader {
72
+ id,
73
+ name
74
+ }
75
+ tasks {
76
+ edges {
77
+ node {
78
+ name,
79
+ deadline
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ ```
Original file line number Diff line number Diff line change 1
- Flask == 0.12.2
1
+ Flask >= 1.0.0
2
2
Flask-GraphQL == 2.0.0
3
3
graphene-mongo
4
4
mongomock == 3.14.0
You can’t perform that action at this time.
0 commit comments