code: def resolve(self, pointer):
          
  
          dp = DocumentPointer(pointer)
          obj, fetcher = self.prototype(dp)
  
          for token in dp.pointer:
              obj = token.extract(obj, bypass_ref=True)
              reference = ref(obj)
              if reference:
                  obj = fetcher.resolve(reference)
          return obj
docs: Resolve from documents.
  
          :param pointer: foo
          :type pointer: DocumentPointer