@sanity/client 6.0.1 → 6.1.0-perspective.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -830,6 +830,12 @@ function _requestObservable(client, httpRequest, options) {
830
830
  ...options.query
831
831
  };
832
832
  }
833
+ if (config.perspective === "previewDrafts") {
834
+ options.query = {
835
+ perspective: config.perspective,
836
+ ...options.query
837
+ };
838
+ }
833
839
  if (config.resultSourceMap) {
834
840
  options.query = {
835
841
  resultSourceMap: true,