コード例 #1
0
    def resolve_detail_record(self, info, key):
        """Method to resolve the detail record object

        Args:
            args:
            info:

        Returns:

        """
        return ActivityDetailObject(id=f"{self.owner}&{self.name}&{key}",
                                    owner=self.owner,
                                    name=self.name,
                                    key=key)
コード例 #2
0
    def resolve_detail_records(self, info, keys):
        """Method to resolve multiple detail record objects

        Args:
            args:
            info:

        Returns:

        """
        return [ActivityDetailObject(id=f"labbook&{self.owner}&{self.name}&{key}",
                                     owner=self.owner,
                                     name=self.name,
                                     _repository_type='labbook',
                                     key=key) for key in keys]