src/Execution/LighthouseRequest.php
protected function fieldValue(string $key)
    {
        return $this->request->input($key)
            ?? $this->request->input("{$this->batchIndex}.{$key}");
    }
protected function fieldValue(string $key)
    {
        return $this->request->input($key)
            ?? $this->request->input("{$this->batchIndex}.{$key}");
    }
protected function fieldValue ( string $ key ) { return $ this -> request -> input ( $ key ) ?? $ this -> request -> input ( "{$this->batchIndex}.{$key}" ) ; }
Get the contents of a field by key.

This is expected to take batched requests into consideration.

@param  string  $key
@return array|string|null
Get the contents of a field by key .