我的石墨烯架构上有客户、用户、项目和旅行:
class Clients(SQLAlchemyObjectType):
class Meta:
model = ClientModel
interfaces = (relay.Node, )
class Users(SQLAlchemyObjectType):
class Meta:
model = UserModel
interfaces = (relay.Node, )
class Projects(SQLAlchemyObjectType):
class Meta:
model = ProjectModel
interfaces = (relay.Node, )
class Trips(SQLAlchemyObjectType):
class Meta:
model = TripModel
interfaces = (relay.Node, )
我想要做的是设置权限,以便有人传递与一个特定客户匹配的访问令牌,并仅显示该特定客户的用户、项目和旅行。
这个怎么做?石墨烯有没有办法做到这一点?