code: function queryCallback(err, result) {
      if (err) return callback(err);
      // Get the raw message
      const r = result.message;
  
      // If we have a timed out query or a cursor that was killed
      if ((r.responseFlags & (1 << 0)) !== 0) {
        return callback(new MongoNetworkError('cursor killed or timed out'), null);
      }
  
      // Raw, return all the extracted documents
      if (raw) {
        cursorState.documents = r.documents;
        cursorState.cursorId = r.cursorId;
        return callback(null, r.documents);
      }
  
      // We have an error detected
      if (r.documents[0].ok === 0) {
        return callback(new MongoError(r.documents[0]));
      }
  
      // Ensure we have a Long valid cursor id
      const cursorId =
        typeof r.documents[0].cursor.id === 'number'
          ? Long.fromNumber(r.documents[0].cursor.id)
          : r.documents[0].cursor.id;
  
      // Set all the values
      cursorState.documents = r.documents[0].cursor.nextBatch;
      cursorState.cursorId = cursorId;
  
      // Return the result
      callback(null, r.documents[0], r.connection);
    }
docs: Query callback