This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @self.user.resolve_references | |
| def resolve_user_references(representations): | |
| results = [] | |
| for req in representations: | |
| kwargs = { | |
| "id": req.get('id') | |
| } | |
| data = self.ds.getUser(**kwargs)[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @dataclass | |
| class BoundaryGeneric: | |
| def __init__(self, child_name, kwargs=None): | |
| self.typename = child_name | |
| if kwargs: | |
| self.update_class(kwargs) | |
| self.get_updated() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| manager.add_types(self.user, self.photo) | |
| manager.add_types(snake_case_fallback_resolvers) | |
| return manager.get_schema() |
OlderNewer