We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388127f commit 0a02abaCopy full SHA for 0a02aba
README.md
@@ -29,6 +29,7 @@ class Employee(Base):
29
__tablename__ = 'employee'
30
id = Column(UUID, primary_key=True)
31
name = Column(String, nullable=False)
32
+ password_hash = Column(String, nullable=False)
33
```
34
35
Next, decorate a type with `strawberry_sqlalchemy_mapper.type()`
@@ -41,7 +42,8 @@ and hybrid properties. For example:
41
42
strawberry_sqlalchemy_mapper = StrawberrySQLAlchemyMapper()
43
@strawberry_sqlalchemy_mapper.type(models.Employee)
44
class Employee:
- pass
45
+ __exclude__ = ["password_hash"]
46
+
47
48
# context is expected to have an instance of StrawberrySQLAlchemyLoader
49
class CustomGraphQLView(GraphQLView):
0 commit comments