wixLocation.query is returning empty string

This works, but I don’t know why. I guess I don’t understand the query objejct.

import wixLocation from ‘wix-location’ ;
$w . onReady ( function (){
$w ( ‘#orderNumber’ ). value = wixLocation .query
})