Skip to content

Commit d8b9c03

Browse files
committed
Merge branch 'docs'
2 parents c42cf75 + d87cd7a commit d8b9c03

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

docs/fields.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@ Mongoengine Fields
1515
- FloatField
1616
- GenericReferenceField
1717
- IntField
18+
- LazyReferenceField
1819
- ListField
20+
- LongField
21+
- MapField
22+
- MultiPolygonField
1923
- ObjectIdField
2024
- ReferenceField
2125
- PointField
2226
- PolygonField
27+
- SequenceField
2328
- StringField
2429
- URLField
2530
- UUIDField

examples/flask_mongoengine/README.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,48 @@ pip install -r requirements.txt
4040
Now the following command will setup the database, and start the server:
4141

4242
```bash
43-
./app.py
44-
43+
python app.py
4544
```
4645

4746

4847
Now head on over to
4948
[http://127.0.0.1:5000/graphql](http://127.0.0.1:5000/graphql)
5049
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+
```

examples/flask_mongoengine/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Flask==0.12.2
1+
Flask>=1.0.0
22
Flask-GraphQL==2.0.0
33
graphene-mongo
44
mongomock==3.14.0

0 commit comments

Comments
 (0)