Skip to content

Commit

Permalink
update example for issue 28
Browse files Browse the repository at this point in the history
  • Loading branch information
art1415926535 committed Aug 27, 2020
1 parent 288662c commit 8a92a31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/users_without_relay/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def add_users():
users = [
User(username='Ally'),
User(username='Ally', type="human"),
User(username='Blayze', balance=0),
User(username='Courtney', balance=100),
User(username='Delmer', balance=9000),
Expand Down
1 change: 1 addition & 0 deletions examples/users_without_relay/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ class Meta:
fields = {
'username': ['eq', 'ne', 'in', 'ilike'],
'balance': [...],
'type': [...],
}
1 change: 1 addition & 0 deletions examples/users_without_relay/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ class User(Base):
id = Column(Integer, primary_key=True, autoincrement=True)
username = Column(String(50), nullable=False, unique=True, index=True)
balance = Column(Integer, default=None)
type = Column(String, nullable=True)

0 comments on commit 8a92a31

Please sign in to comment.