The first parameter required for each of the two functions listed in the title is a string: “bucketName”. It seems that the bucket’s name is not sufficient as I get an error if the supplied string does not also have the back-ticks used by N1QL for the bucket names in queries.
Is this expected? I found it to be non-intuitive as a requirement.